-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two applications on the same server #288
Comments
Running two applications on the same serverWithout HTTPS, on different portsYou can run the two applications by specifying different values for the On the same portIf you want to run both applications on the same port (HTTPS on port 443, or HTTP on port 80) for instance, The reverse proxy will receive requests, and based on their contents, decide which SQLPage instance to forward them to. Example nginx configuration
HTTP configuration for site1 (site1-http.conf): server {
listen 80;
server_name site1.com;
location / {
proxy_pass http://localhost:8081;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
} HTTP configuration for site2 (site2-http.conf): server {
listen 80;
server_name site2.com;
location / {
proxy_pass http://localhost:8082;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
|
Introduction
When we want to launch 2 differents appli with SQLpage with 2 differents ports for example 8080 and 8081 and behind 2 https domain
it's impossible to reach the server
The text was updated successfully, but these errors were encountered: