- 1 Hyper-V 2012 R2: Pros and Cons of Generation 1 vs. Generation 2 VMs
- 2 Harnessing the Power of Hyper-V Network Virtual Switches
- 3 Working with SSH and Secure FTP Servers in Windows
- 4 Discover Windows 8's Hidden Server Features
- 5 Server Virtualization Customer Reviews: VMware, Hyper-V, XenServer and More
3 Apache/httpd Command-Line Options
NB: Some distributions (e.g., Debian) use apache instead of httpd. The options should all be exactly the same. If in doubt, check the apachectl script to see what the HTTPD variable is set to.
After you're done with any of these, httpd -k stop; apachectl start will restart with your normal settings.
- httpd -k start -c "DocumentRoot /var/www/html_debug/": Start up Apache using an alternative DocumentRoot. This is useful if you're trying out alternative versions of your web site, as it avoids editing the DocumentRoot option. You can also use -c to set any other directive. Note that -c processes the directive after reading the config files (so it will overwrite config file settings), whereas -C will process the directive before the config files.
- httpd -k start -f conf/httpd.conf.debug: Start Apache with a different config file. This is in effect an alternative to backing up your old config file and then editing the original. It's particularly useful if you manage config files with Puppet, as it ensures that changes will not be overwritten while you're experimenting.
- httpd -D loadmodule: Set the parameter loadmodule, which will then be used when parsing the config file. So if your config file includes this:
then my_other_module will be loaded only if the parameter is set. You can use this for testing modules before adding them permanently.
<IfDefine loadmodule> LoadModule my_other_module </IfDefine>