Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section 3rd Party Software
  • Search

OXY Classifieds - Wiild Card domain

Section with additional software for Vesta
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
nik
Posts: 13
Joined: Wed May 07, 2014 10:19 pm

OXY Classifieds - Wiild Card domain
  • Quote

Post by nik » Sun Sep 06, 2015 4:08 am

Need some advice . Using OxyClassifieds
VestaCP /w Nginx - default + phpfcgdi

1) Htaccess - made the following adjustment
http://www.oxyclassifieds.com/documenta ... g-location

2) VestaCP Admin
Web Aliases added
*.mydomain.com

DNS added record
* A my ip address

3)Domain httpd.conf - changed
ServerAlias *.mydomain.com

Restarted Apache / Nginx
Still got browser message "Page not Found " after clicking Region sub domain

However only after adding the following to domain nginx.config :

Code: Select all

server_name ~^(?<vhost>.*)$;
root /srv/www/$vhost;
access_log /var/log/nginx/$vhost.access.log;
ref:http://serverfault.com/questions/249952 ... -on-nginx/

Was I able to access site region subdomain
Q. Is my nginx.conf below correct ?

Code: Select all

server {
    listen    mydomain   ip ;
    server_name ~^(?<vhost>.*)$;
    root /srv/www/$vhost;
    access_log /var/log/nginx/$vhost.access.log;

    error_log  /var/log/httpd/domains/mydomiain.com.error.log error;
     
    location / {
        proxy_pass      http://mydomian ip :8080;
        location ~* ^.+\.(jpg|jpeg|gif|png|ico|svg|css|zip|tgz|gz|rar|bz2|exe|pdf|doc|xls|ppt|txt|odt|ods|odp|odf|tar|bmp|rtf|js|mp3|avi|mpeg|flv|html|htm)$ {
            root           /home/web/mydomain.com/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/web/mydomian .com/document_errors/;
    }

    location @fallback {
        proxy_pass      http://mydomian ip :8080;
    }

    location ~ /\.ht    {return 404;}
    location ~ /\.svn/  {return 404;}
    location ~ /\.git/  {return 404;}
    location ~ /\.hg/   {return 404;}
    location ~ /\.bzr/  {return 404;}

    include /home/conf/web/nginx.mydomian.com.conf*;
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “3rd Party Software”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password