Skip to content

Instantly share code, notes, and snippets.

@keating
Last active December 15, 2015 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keating/5343762 to your computer and use it in GitHub Desktop.
Save keating/5343762 to your computer and use it in GitHub Desktop.
Centos Apache Rails configuration
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