Hello guys,
I have a weird problem which i really don't understand it. I was trying to many times to reconfigure vhosts. My vhosts show diffrent patch then has been set.
I have installed nginx as a reverse proxy. There is nothing special. Default nginx config + content below:
That's all.
And the funny thing is:
proton.edu.pl - shows main site from /usr/local/www/apache24/data
aix.conf - shows main site from /usr/local/www/apache24/data
bryn1u.conf - shows correcly
rockcat.conf - shows blank white page
But when i turned off nginx and changed port from 8080 on 80 it works well. Someone can tell me what's wrong ?
I have a weird problem which i really don't understand it. I was trying to many times to reconfigure vhosts. My vhosts show diffrent patch then has been set.
Code:
<VirtualHost *:8080>
ServerAdmin admin@example.org
ServerName aix.proton.edu.pl
ServerAlias www.aix.proton.edu.pl
DocumentRoot "/home/aix/domains/aix.proton.edu.pl"
<Directory /home/aix/domains/aix.proton.edu.pl>
Options +Indexes
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:8080>
ServerAdmin admin@example.org
ServerName bryn1u.proton.edu.pl
ServerAlias www.bryn1u.proton.edu.pl
DocumentRoot "/home/bryn1u/domains/bryn1u.proton.edu.pl"
<Directory /home/bryn1u/domains/bryn1u.proton.edu.pl>
Options +Indexes
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:8080>
ServerAdmin admin@example.org
ServerName rockcat.proton.edu.pl
ServerAlias www.rockcat.proton.edu.pl
DocumentRoot "/home/rockcat/domains/rockcat.proton.edu.pl"
<Directory /home/rockcat/domains/rockcat.proton.edu.pl>
Options All +Indexes
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
Code:
root@proton:/usr/local/etc/apache24/Includes/vhosts # httpd -S
VirtualHost configuration:
*:8080 is a NameVirtualHost
default server aix.proton.edu.pl (/usr/local/etc/apache24/Includes/vhosts/aix.conf:1)
port 8080 namevhost aix.proton.edu.pl (/usr/local/etc/apache24/Includes/vhosts/aix.conf:1)
alias www.aix.proton.edu.pl
port 8080 namevhost bryn1u.proton.edu.pl (/usr/local/etc/apache24/Includes/vhosts/bryn1u.conf:1)
alias www.bryn1u.proton.edu.pl
port 8080 namevhost rockcat.proton.edu.pl (/usr/local/etc/apache24/Includes/vhosts/rockcat.conf:1)
alias www.rockcat.proton.edu.pl
ServerRoot: "/usr/local"
Main DocumentRoot: "/usr/local/www/apache24/data"
Main ErrorLog: "/var/log/httpd-error.log"
Mutex proxy: using_defaults
Mutex default: dir="/var/run/" mechanism=default
Mutex mpm-accept: using_defaults
PidFile: "/var/run/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www" id=80
Group: name="www" id=80
root@proton:/usr/local/etc/apache24/Includes/vhosts #
I have installed nginx as a reverse proxy. There is nothing special. Default nginx config + content below:
Code:
location / {
root /usr/local/www/nginx;
index index.html index.htm;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8080;
}
And the funny thing is:
proton.edu.pl - shows main site from /usr/local/www/apache24/data
aix.conf - shows main site from /usr/local/www/apache24/data
bryn1u.conf - shows correcly
rockcat.conf - shows blank white page
But when i turned off nginx and changed port from 8080 on 80 it works well. Someone can tell me what's wrong ?