Tag Info

New answers tagged

0

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 ...


0

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 ...


0

You need to use %1 (not $1) in your "2nd attempt" (as you did in your 1st attempt) and it looks like you should be almost there: RewriteCond %{QUERY_STRING} ^/page/index.html/(.*)$ RewriteRule ^index.php /index.php?/article.html/%1 [L] Although if you're in .htaccess you need to also remove the slash prefix from the RewriteRule pattern. %1 is a ...


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 ...


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. ...


0

The issue of one.com not accepting the same IP address for the A record of 2 domains to me suggests the provider has a slightly odd or bespoke setup, and this limitation is in their control panel, and not the capability of their server to manage 2 domains on one IP address. I manage large numbers of domains on single IP addresses without any problems, ...


0

I'm gonna assume each domain you're inquiring about are assigned separate document root folders on the same server. I'll assume the document root for abc.com is in the /abc/public_html folder, and document root for xyz.com is in the /xyz/public_html folder. Because you don't want xyz.com to show up and you want data from it, you have a couple of options. ...


0

After a while researching and experimenting I've managed to find solution: Install plugin Permalink Fix & Disable Canonical Redirects Pack; Change the location / block in my config (the one I posted above) like that: location / { try_files $uri $uri/ /index.php?q=$uri&$args; }


0

It looks like a possible cause can be you have two conflicting MIME types. Here is a solution provided by Microsoft: https://support.microsoft.com/en-us/kb/942050


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 ...



Top 50 recent answers are included