Tag Info

Hot answers tagged

3

loading that file displays the php source instead With syntax highlighting. The same as if you had called PHP's highlight_file() function on that file. It's just a feature if you need to quickly document some code. Many sites display syntax highlighted code on their blogs etc. PHP has this built-in if you need it. If you don't need it, remove it. ...


2

The first virtual host directive is the default "catch all." Any unrecognized host names get handled by whichever virtual host directive comes first. The solution to your problem is to create a default virtual host directive that prints out an error. I have one that I use. I've previously posted it in this answer 404 Not Found -- Hostname Not ...


1

Is there anything unusual or nefarious about private IP addresses in server logs? would like to know if there is a plausible explanation which points to private IPs in Apache access logs being a normal, "usual" thing for some reason Unusual, no. Nefarious, possibly, it really depends on what the traffic is attempting to do. from ...


1

The HTTP header you need to add is Content-Type: text/html; charset: ISO-8859-1. You can add FilesMatch and other directives within the Apache <VirtualHost> declaration: <VirtualHost> # other directives here such as DocumentRoot <FilesMatch "\.(htm|html|php)$"> AddDefaultCharset ISO-8859-1 Header always set Content-Type ...


1

You need to make sure that both servers have the exact same document root folder defined in the configuration files. In a fresh install of apache, look at httpd.conf and find contents similar to this: # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and ...



Only top voted, non community-wiki answers of a minimum length are eligible