Getting an error when I visit http://localhost

You can access “localhost” just fine. The “404: file not found” error indicates the server can’t find the requested file once you’ve connected to localhost. ADDENDUM: Maybe try to create a regular html file called test.html in one of your vhosts that is not working. Then try to visit that url. That should give you some clue … Read more

XSLT-FO for-each

Based on your update: since apparently you have no code to add for a Locations element, you could shorten your code by changing: to: and then doing:

How do I resolve a HTTP 414 “Request URI too long” error?

Under Apache, the limit is a configurable value, LimitRequestLine. Change this value to something larger than its default of 8190 if you want to support a longer request URI. The value is in /etc/apache2/apache2.conf. If not, add a new line (LimitRequestLine 10000) under AccessFileName .htaccess. However, note that if you’re actually running into this limit, you are probably … Read more

.htaccess redirect http to https

Update 2016 As this answer receives some attention, I want to hint to a more recommended way on doing this using Virtual Hosts: Apache: Redirect SSL Old answer, hacky thing given that your ssl-port is not set to 80, this will work: Note that this should be your first rewrite rule. Edit: This code does the following. The … Read more

Serving precompressed content with Brotli on Apache

I have installed mod_brotli on my WHM server via easyapache 4 – html, css, js files etc are all being compressed. I then came across this in the offocial docs – https://httpd.apache.org/docs/2.4/mod/mod_brotli.html#precompressed I have since added this to my Post VirtualHost include file in WHM (post_virtualhost_global.conf) instead of htaccess as I want this to be server … Read more

ssl_error_rx_record_too_long and Apache SSL [closed]

The link mentioned by Subimage was right on the money for me. It suggested changing the virtual host tag, ie, from <VirtualHost myserver.example.com:443> to <VirtualHost _default_:443> Error code: ssl_error_rx_record_too_long This usually means the implementation of SSL on your server is not correct. The error is usually caused by a server side problem which the server … Read more