Redirect public traffic to a different subfolder, while local traffic remains unchanged
- by ecnepsnai
I would like to have local (intranet) HTTP traffic go to the /var/www/html folder while any public traffic goes to the subfolder, /var/www/html/public
I've tried this configuration, with some variation, in httpd.conf
<VirtualHost PRIVATE-IP>
DocumentRoot /var/www/html
ServerName ecn
ErrorLog /var/www/logs/error/private
…