vultrの格安プランのIPv6だけのプランでnginxを導入して動かしています。CloudFlareを使用してサブドメインを設定していたら、test.xxx.workでアクセスしたのと、 普通に xxx.work アクセスしたのと全く変化がありません。
初心者なので宜しくお願い致します。
参考サイト
default
1server { 2 listen 80 default_server; 3 listen [::]:80 default_server; 4 5 # SSL configuration 6 # 7 # listen 443 ssl default_server; 8 # listen [::]:443 ssl default_server; 9 # 10 # Note: You should disable gzip for SSL traffic. 11 # See: https://bugs.debian.org/773332 12 # 13 # Read up on ssl_ciphers to ensure a secure configuration. 14 # See: https://bugs.debian.org/765782 15 # 16 # Self signed certs generated by the ssl-cert package 17 # Don't use them in a production server! 18 # 19 # include snippets/snakeoil.conf; 20 21 root /var/www/html; 22 23 # Add index.php to the list if you are using PHP 24 index index.html index.htm index.nginx-debian.html; 25 26 server_name _; 27 28 location / { 29 # First attempt to serve request as file, then 30 # as directory, then fall back to displaying a 404. 31 try_files $uri $uri/ =404; 32 } 33 34 # pass PHP scripts to FastCGI server 35 # 36 #location ~ .php$ { 37 # include snippets/fastcgi-php.conf; 38 # 39 # # With php-fpm (or other unix sockets): 40 # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; 41 # # With php-cgi (or other tcp sockets): 42 # fastcgi_pass 127.0.0.1:9000; 43 #} 44 45 # deny access to .htaccess files, if Apache's document root 46 # concurs with nginx's one 47 # 48 #location ~ /.ht { 49 # deny all; 50 #} 51} 52 53 54# Virtual Host configuration for example.com 55# 56# You can move that to a different file under sites-available/ and symlink that 57# to sites-enabled/ to enable it. 58# 59#server { 60# listen 80; 61# listen [::]:80; 62# 63# server_name xxx.work; 64# 65# root /var/www/example.com; 66# index index.html; 67# 68# location / { 69# try_files $uri $uri/ =404; 70# } 71#} 72
xxx.work
1server { 2 listen 80 ; 3 server_name test.xxx.work; 4 5 location / { 6 root /var/www/test; 7 index index.html index.htm; 8 } 9}
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。