0

I have my custom-httpd.conf file c:\apache\conf Am wondering how do I use this custom-httpd.conf file instead of httpd.conf file to create Apache service in windows.

Tried the below command but didnt work

httpd.exe -k start -k config ..\conf\custom-httpd.conf -n "Apachefacade"
OTUser
  • 73
  • 3
  • 11

2 Answers2

1

You should be able to simply change the default config to point to your custom config:

http://httpd.apache.org/docs/2.2/mod/core.html#include

If you're trying to start a second instance you need a -f to specify the config, in your example you've used -k

Craig
  • 585
  • 2
  • 13
-1

If you pass a command like this to create your 2nd service:

httpd.exe -f conf/2.conf -k install -n server2

Then anytime you start the service named "server2" it will start with the alternate configuration specified by -f.

covener
  • 1,685
  • 9
  • 15