I am trying to set up an alias in my httpd.conf file so that I can look at my log files via my browser. The following is the alias that I am trying to create.
Alias /logs "/<servername>/log" <Directory /<servername>/log> Options Indexes FollowSymLinks AuthName "Application Logs" AuthType Basic AuthUserFile /<servername>/ihs/610/conf/.htpasswd <Limit GET POST> require valid-user </Limit> </Directory>
This works OK on my developer box but not on my production box.
The differnce is that on my production box, my application is installed with a context root of
When I type in my URL and add the alias (e.g.
mysite.com/logs), instead of seeing the log directory, I am seeing my custom 404 error page.
I think this is because I am not using a context root or just
/ for my application and all requests will be delayed by the application.
Is there any workaround?