Skip to content

Instantly share code, notes, and snippets.

@malkitsingh
Created December 22, 2016 05:43
Show Gist options
  • Save malkitsingh/766f65cbbefc61c035152433c890a169 to your computer and use it in GitHub Desktop.
Save malkitsingh/766f65cbbefc61c035152433c890a169 to your computer and use it in GitHub Desktop.
Running node app with proxy from any port and map to port 80
<VirtualHost IP:80>
ServerName xyz.com
ServerAlias www.xyz.com
DocumentRoot /var/www/xyz/data/www/xyz.com
ServerAdmin webmaster@xyz.com
DirectoryIndex index.html index.php
<!--------------- stuff which is placed in this file
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
ProxyPass http://localhost:8000/
ProxyPassReverse http://localhost:8000/
</Location>
--------------------------------------!>
AddDefaultCharset off
AssignUserID xyz xyz
CustomLog /var/www/httpd-logs/xyz.com.access.log combined
ErrorLog /var/www/httpd-logs/xyz.com.error.log
<FilesMatch "\.ph(p[3-5]?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f webmaster@xyz.com"
php_admin_value upload_tmp_dir "/var/www/xyz/data/mod-tmp"
php_admin_value session.save_path "/var/www/xyz/data/mod-tmp"
php_admin_value open_basedir "/var/www/xyz/data:."
</VirtualHost>
<Directory /var/www/tabmilesapi/data/www/xyz.com>
Options +Includes -ExecCGI
php_admin_flag engine on
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment