Last active
December 15, 2015 23:58
-
-
Save keating/5343762 to your computer and use it in GitHub Desktop.
Centos Apache Rails configuration
This file contains 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
Coping the following codes: | |
``` | |
LoadModule proxy_module modules/mod_proxy.so | |
LoadModule proxy_http_module modules/mod_proxy_http.so | |
<VirtualHost *:80> | |
ServerName www.jobmre.fr | |
DocumentRoot /usr/local/pro/future_cadre | |
ProxyRequests Off | |
ProxyPass / http://your_ip:4000/ | |
ProxyPassReverse / http://your_ip:4000/ | |
</VirtualHost> | |
``` | |
under this line | |
``` | |
Listen *:80 | |
``` | |
The configuration file is /etc/httpd/conf/httpd.conf | |
/etc/rc.d/init.d/httpd start | |
/etc/rc.d/init.d/httpd stop | |
http://serverfault.com/questions/346559/load-mod-proxy-and-mod-proxy-http-modules-of-apache-in-centos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment