You are not logged in.
I made a private network that only works in my Virtual Box machine. Only accessible through the gateway (ClearOS) or with the host-only adapter (192.168.56.1) for a few of the machines : nginx (ze proxy), glpi (apache), osclass (apache), osticket (nginx) so I can SSH.
The purpose of all this is making the server's websites available anywhere through nginx.
As of right now, I can access all sites inside the network and on the host with their IP addresses with port 8080 EXCEPT osclass. It seems to have a weird config.php thing going on with a defined web path. This config also does not have pictures and stuff, but I really only wanted the bare bones to start off.
Continuing from there, my NGINX config works from my host and internal client with this config.
/var/www/caro/index.html :
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<h1>Success! The Caro server block is working!</h1>
<a href="http://caro.moi/glpi">GLPI</a>
<a href="http://caro.moi/ticket">Ticket</a>
<a href="http://caro.moi/classified">Classifieds</a>
</body>
</html>
/etc/nginx/sites-available/caro :
server {
listen 80;
listen [::]:80;
root /var/www/caro;
index index.php index.html index.htm index.nginx-debian.html;
server_name caro.moi;
access_log /var/log/nginx/caro.access.log combined;
error_log /var/log/nginx/caro.error.log;
location /ticket/ {
proxy_pass http://192.168.0.7:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /classified/ {
proxy_pass http://192.168.0.6:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /glpi/ {
proxy_pass http://192.168.0.4:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Adding SSL and it now gives a 400 Bad Request.
Offline