Commit 7d63764e authored by Rodrigo Tapia-McClung's avatar Rodrigo Tapia-McClung

update README

parent c084626a
...@@ -39,6 +39,35 @@ to ...@@ -39,6 +39,35 @@ to
`local all all md5` `local all all md5`
## Apache and NodeJS to serve through port :80
Edit your site on `etc/apache2/sites-enabled`.
Either at the end of your site config or at the end the VirtualHost directive of add the following:
```
<VirtualHost *:80>
...
ProxyRequests on
ProxyPass /[path]/ http://localhost:[port]/[path]/
</VirtualHost>
```
Enable the following apache modules:
```
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_balancer
sudo a2enmod lbmethod_byrequests
```
And restart Apache:
```
sudo service apache2 restart
```
Now you can serve your app through port 80 instead of 8090 or something else.
NodeJS requests will be routed to port 8090 :)
## Installation ## Installation
If you don't have git, you can donwload [a zip file](https://github.com/anneb/pgserver/archive/master.zip) of the project instead. If you don't have git, you can donwload [a zip file](https://github.com/anneb/pgserver/archive/master.zip) of the project instead.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment