E.g.: httpd.exe -k runservice -D local
(the '-k runservice' is automatically added by Xampp I believe - I would like to be able to add '-D local')
Is it possible to set this up through Xampp so I don't have to manually add this to the Apache service, every time it (re-)starts?
In case there may be an alternative solution, I'm using the following .htaccess to provide different locations for the password file, whilst using a single .htaccess files for the dev and live servers.
- Code: Select all
<IfDefine local>
AuthUserFile c:/localdev/location/.htpasswd
AuthName "Dev"
AuthType Basic
</IfDefine>
<IfDefine !local>
AuthUserFile /live/server/different/location/.htpasswd
AuthName "Live"
AuthType Basic
</IfDefine>
Source based on: http://stackoverflow.com/questions/736524/how-can-i-have-a-conditional-htaccess-block