Configure nginx with multiple locations with different root folders on subdomain

You need to use the alias directive for location /static: server { index index.html; server_name test.example.com; root /web/test.example.com/www; location /static/ { alias /web/test.example.com/static/; } } The nginx wiki explains the difference between root and alias better than I can: Note that it may look similar to the root directive at first sight, but the document … Read more

ssl_error_rx_record_too_long and Apache SSL [closed]

The link mentioned by Subimage was right on the money for me. It suggested changing the virtual host tag, ie, from <VirtualHost myserver.example.com:443> to <VirtualHost _default_:443> Error code: ssl_error_rx_record_too_long This usually means the implementation of SSL on your server is not correct. The error is usually caused by a server side problem which the server … Read more

How to create an HTTPS server in Node.js?

The Express API doc spells this out pretty clearly. Additionally this answer gives the steps to create a self-signed certificate. I have added some comments and a snippet from the Node.js HTTPS documentation: var express = require(‘express’); var https = require(‘https’); var http = require(‘http’); var fs = require(‘fs’); // This line is from the … Read more

Deploy a project using Git push

I found this script on this site and it seems to work quite well. Copy over your .git directory to your web server On your local copy, modify your .git/config file and add your web server as a remote: [remote “production”] url = username@webserver:/path/to/htdocs/.git On the server, replace .git/hooks/post-update with this file (in the answer … Read more

What is the difference between application server and web server?

Most of the times these terms Web Server and Application server are used interchangeably. Following are some of the key differences in features of Web Server and Application Server: Web Server is designed to serve HTTP Content. App Server can also serve HTTP Content but is not limited to just HTTP. It can be provided … Read more

What’s the difference between a proxy server and a reverse proxy server? [closed]

The previous answers were accurate, but perhaps too terse. I will try to add some examples. First of all, the word “proxy” describes someone or something acting on behalf of someone else. In the computer realm, we are talking about one server acting on the behalf of another computer. For the purposes of accessibility, I … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)