Skip to content

Instantly share code, notes, and snippets.

fais3000

Block or report user

Report or block fais3000

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fais3000
fais3000 / Vhost settings for Apache
Last active Jun 12, 2018
Apache2 Vhost settings for setting up server to serve PHP and Nodejs apps together
View Vhost settings for Apache
<Virtualhost>
ServerName craftypixels.com
ProxyPreserveHost on
ProxyPass /blog !
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
alias /blog /var/www/craftypixels/blog
DocumentRoot /var/www/craftypixels/blog/
Options -Indexes
@fais3000
fais3000 / Virtual host settings for Nginx
Created Feb 12, 2017
Nginx Vhost settings for setting up server to serve PHP and Nodejs apps together
View Virtual host settings for Nginx
server {
listen 80;
server_name craftypixels.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
@fais3000
fais3000 / nginx-socketio-ssl-reverse-proxy.conf
Last active Jun 12, 2018 — forked from gmanau/nginx-socketio-ssl-reverse-proxy.conf
How to setup nginx as nodejs/socket.io reverse proxy over SSL
View nginx-socketio-ssl-reverse-proxy.conf
upstream upstream-nodejs {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name mydomain.com www.mydomain.com;
rewrite ^(.*) https://$host$1 permanent;
}
You can’t perform that action at this time.