This is apache httpd config sample.
Remember, this is sample,before apply to your server, make sure all config goes right.
======
- httpd.conf # base config
- common/base.conf # common apache config
- common/modules.conf # loaded modules
- common/cache.conf # cache options,gzip compression
- common/mpm.conf # mpm config for several platforms
- common/secure.conf # some configs related secure
- common/server-status.conf # apache server status config,config as only allow from internal IP
- tomcat/ajp.conf # examples for integrate with tomcat via mod_jk
- tomcat/workers.conf # modjk config samples
- tomcat/proxy.conf # example for integrate with tomcat via proxy
- tomcat/ajp-proxy.conf # example for integrate with tomcat via ajp proxy
======
cd $HTTPD_HOME
git clone https://github.com/jongsuny/httpd-conf-sample.git
mv conf conf_bak
ln -sf httpd-conf-sample conf
apachectl -t
apachectl stop
apachectl start
curl http://localhost:8088/
======
- make sure your apache version is 2.4 or above
- change ServerRoot to your apache root directory. ex)/Users/jongsuny/apps/apache-httpd-2.4.20
- change ServerAdmin to your email address. ex)[email protected]
- change ServerName to your domain. ex)github.com
- change your Listen to your server listening port. ex)80
- change /Users/jongsuny/apps/apache-httpd-2.4.20/htdocs to your proper directory,like tomcat webapps
- change DocumentRoot to same above 6.
- mark as comment useless files included from httpd.conf. ex) #Include conf/tomcat/ajp_proxy.conf
- you can also recover from your original config file. see original