Aliases are still accessible when in Offline Mode?
Posted by: cartpauj (---.west-datacenter.net)
Date: May 24, 2012 03:58AM

Does anyone know why the Apache aliases still work when setting WAMPServer to offline mode? Example [mydomain.com] still works, but [mydomain.com] shows the proper access denied page.

Thanks for any answers!

Options: ReplyQuote
Re: Aliases are still accessible when in Offline Mode?
Posted by: cartpauj (---.west-datacenter.net)
Date: May 24, 2012 04:06AM

I found a clue in the httpd.conf file around line #231

When offline:
# onlineoffline tag don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1

When online:
# onlineoffline tag don't remove
Order Allow,Deny
Allow from all

The strange thing is that when accessing the server remotely (not from localhost) when in offline mode, the aliases still work.

Options: ReplyQuote
Re: Aliases are still accessible when in Offline Mode?
Posted by: stevenmartin99 (Moderator)
Date: May 24, 2012 09:22AM

Its absolutly not true

all 3 alias set up in wamp are blocked PERMENTLY from outside access

in the alias folder there is a file for each alias

they contain

<Directory "c:/wamp/apps/sqlbuddy1.3.2/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>





- if your adding your own alias then you need to have the same code.


These are seperate directory statements so they dont inherit other settings from the root directory.

if you need them to follow the online/offline setting then you wouldnt use alias - use vhosts

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Aliases are still accessible when in Offline Mode?
Posted by: cartpauj (---.hsd1.ut.comcast.net)
Date: May 24, 2012 06:36PM

DOH! Thanks for pointing out my mistake. I forgot I had changed the Order statements in my aliases when I initially set up the server. Will definitely switch to Vhosts instead. Thanks again.

Options: ReplyQuote


Sorry, only registered users may post in this forum.