Run with: httpd.exe -D parameter-name?
Posted: 20. July 2011 11:50
I use Xampp for my local development, and would like to add a parameter-name to the httpd.exe call so it can be used in a IfDefine (http://httpd.apache.org/docs/2.0/mod/core.html#ifdefine)
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.
Source based on: http://stackoverflow.com/questions/736524/how-can-i-have-a-conditional-htaccess-block
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