Question
How to config nginx (Front end proxy for apach) for Xenforo?
I can’t connect to proxy of apache2 for nginx to config Friendly URLs fo XenForo,
This is my content in sites-enabled of nginx
server {
listen 80;
server_name domain.com www.domain.com;
root /var/www/bundle;
index index.php index.html index.htm;
#access_log /var/www/logs/domain.access.log;
location / {
try_files $uri $uri/ /index.php?$uri&$args;
index index.php index.html;
proxy_pass http://127.0.0.1:8080/;
#allow 1.1.1.1 ;
}
location ~ /(internal_data|library) {
internal;
#proxy_pass http://127.0.0.1:8080;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:8080;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
#proxy_set_header X-Real-IP $remote_addr;
#proxy_set_header X-Forwarded-For $remote_addr;
#proxy_set_header Host $host;
#proxy_pass http://127.0.0.1:8080;
}
# location ~ /\.ht {
# deny all;
# }
}
and content in sites-available of Apache2
<VirtualHost 127.0.0.1:8080>
ServerName domain.com
ServerAlias www.domain.com
DocumentRoot /var/www/bundle
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/bundle/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Please help !!!… Thank you ..
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×