Richard G
Verified User
We got a couple of servers, all configured the same way. All sites are using a symlink by default from private_html to public_html.
Now if you check the apache error logs, from some domains (for example wordpress) you see /public_html logs but on for example a some forum software and some other sites you might see /private_html in the logs. In all cases even if they are existing files (but denied by .htaccess) or main site.
It's known to me that it doesn't make much difference as this is just a symlink.
So I presume at some point the way of logging (private_html or public_html) is defined by the application in some way.
Or is there an easy way to change it so it's logged the same for all servers/domains just using public_html if it's a symlink?
It's not something that has priority, I just like things in logs a bit more neat and structural. So if it can't be adjusted it's fine by me too.
Just wondering why some applications, like Wordpress are logging it in the correct way and some don't, if that is application related or apache related.
Now if you check the apache error logs, from some domains (for example wordpress) you see /public_html logs but on for example a some forum software and some other sites you might see /private_html in the logs. In all cases even if they are existing files (but denied by .htaccess) or main site.
It's known to me that it doesn't make much difference as this is just a symlink.
So I presume at some point the way of logging (private_html or public_html) is defined by the application in some way.
Or is there an easy way to change it so it's logged the same for all servers/domains just using public_html if it's a symlink?
It's not something that has priority, I just like things in logs a bit more neat and structural. So if it can't be adjusted it's fine by me too.
Just wondering why some applications, like Wordpress are logging it in the correct way and some don't, if that is application related or apache related.