Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Subdomains no longer work (no replies)

$
0
0
Subdomains do not longer work for me, what did I make wrong?
Thanks

# ---------------------------------------
# vHost domain.tld
# ---------------------------------------

server {

##
# Basic Settings
##

listen 80;
listen [::]:80 ipv6only=on;
server_name domain.tld www.domain.tld;
root /var/www/domain.tld/www;
client_max_body_size 20M;
index index.php index.htm index.html;

##
# Logging
##

access_log off;
error_log /var/www/domain.tld/logs/www.domain.tld.error.log notice;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}

location / {
try_files $uri $uri/ /index.php?$args @memcached;
#include /etc/nginx/proxy_params;
}

location ^~ /testfragen/admin {
auth_basic "Login";
auth_basic_user_file /var/www/domain.tld/www/testfragen/admin/.htpasswd;
include conf.d/php.conf;
}

##
# PHP-FPM
##

include conf.d/php.conf;

##
# Pagespeed
##

include conf.d/pagespeed.conf;

##
# Other Includes
##

include conf.d/main_rules.conf;
include conf.d/security.conf;
include conf.d/wordpress.conf;
include conf.d/wpmemcached.conf;
}

# ---------------------------------------
# vHost adminer.domain.tld
# ---------------------------------------

server {

##
# Basic Settings
##

listen 80;
server_name adminer.domain.tld;
root /var/www/domain.tld/adminer;
client_max_body_size 20M;
index index.php index.htm index.html;

##
# Logging
##

access_log off;
error_log /var/www/domain.tld/logs/adminer.domain_tld.error.log notice;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}

##
# Fancy Index
##

location / {
fancyindex on; # Enable fancy indexes.
fancyindex_exact_size off; # Output human-readable file sizes.
}

##
# Pagespeed
##

include conf.d/pagespeed.conf;

##
# PHP-FPM
##

include conf.d/php.conf;
}

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>