Help with nginx and VestaCP
-
Someone help me with this problem.
I have at my VPS - vestaCP.
All domains at
home/admin/web/DOMAIN-NAME/public_html
i installed nodebb at opt/forum/nodebb
how i can bind domain to my forum?
Nginx installed from vestaCP.
Apache is frontend (at domains) nginx (backend - reverse proxy)Config from nginx at my domain is -------
`server {
listen server_ip:80;
server_name mydomain www.mydomain.ru;
error_log /var/log/httpd/domains/blizzardfans.ru.error.log error;
location / {
proxy_pass http://server_ip:8080;
location ~* ^.+.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz2|7z|aac|m4a|mp3|mp4|ogg|wav|wma|3gp|avi|flv|m4v|mkv|mov|mpeg|mpg|wmv|exe|iso|dmg|swf)$ {
root /home/admin/web/mydomain/public_html;
access_log /var/log/httpd/domains/mydomain.log combined;
access_log /var/log/httpd/domains/mydomain.bytes bytes;
expires max;
try_files $uri @fallback;
}
}
location /error/ {
alias /home/admin/web/mydomain/document_errors/;
}
location @fallback {
proxy_pass http://server_ip:8080;
}
location ~ /.ht {return 404;}
location ~ /.svn/ {return 404;}
location ~ /.git/ {return 404;}
location ~ /.hg/ {return 404;}
location ~ /.bzr/ {return 404;}include /home/admin/conf/web/nginx.mydomain.conf*;`
what i need to do?
i have and SSL nginx too.
What i need to change?
-
You don't need to put it in public_html. It makes no difference.