Created
November 27, 2013 07:58
-
-
Save thwarted/7672130 to your computer and use it in GitHub Desktop.
minimum Apache command line to start up a single shot web server with directory indexes and logging to the terminal. Uses compiled in default for ServerRoot (so modules can be found)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
httpd \ | |
-f /dev/null \ | |
-C 'LoadModule autoindex_module modules/mod_autoindex.so' \ | |
-C 'LoadModule log_config_module modules/mod_log_config.so' \ | |
-C 'LoadModule dir_module modules/mod_dir.so' \ | |
-C "DocumentRoot $( readlink -f .)" \ | |
-C 'Listen 7000' \ | |
-C 'ErrorLog /dev/stdout' \ | |
-C 'PidFile /tmp/pidfile' \ | |
-C 'LogFormat "%h %l %u %t \"%r\" %>s %b" common' \ | |
-C 'CustomLog /dev/stdout common' \ | |
-D FOREGROUND |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very helpful. Thank you. I hate using the conf file. This worked for me in Ubuntu 12.04 (though without the extra modules you can't list directories):