Issues settings up subdomains w/ nginx -
i trying setup subdomain website phpmyadmin having issues trying work. when visit website working intended, when visit subdomain have setup shows me regular website , nothing related phpmyadmin. have been trying several different combinations try , working can't figure out. first time of me trying use nginx need help. here following configuration files.
/etc/nginx/nginx.conf
user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; include /etc/nginx/conf.d/*.conf; }
/etc/nginx/conf.d/default.conf
server { listen 80; server_name www.cozykittygames.com; root /usr/share/nginx/html; index index.php index.html index.htm; location ~ \.php$ { try_files $uri =404; include fastcgi_params; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param script_filename $document_root$fastcgi_script_name; } } server { server_name pma.cozykittgames.com; root /usr/share/phpmyadmin; }
i have tried think of, subdomain setup exact copy of regular domain server_name being different. @ point if can subdomain point right folder great.
the problem typo in server name, leaving out "y" in "kitty". should be:
server_name pma.cozykittygames.com;
Comments
Post a Comment