国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

您的位置:首頁技術文章
文章詳情頁

web - nginx怎么綁定域名?

瀏覽:73日期:2023-08-17 09:32:44

問題描述

rt,網上一搜都是多域名的做法,然而本著試一試的想法做了之后發現沒用。。。特來詢問一下怎么寫配置文件才可以。。

問題解答

回答1:

web - nginx怎么綁定域名?

它的配置文件很明確。你照著改就行了server_name 那里把localhost改成自己的域名就行了。

回答2:

主配置文件

user huangyanxiong;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; sendfileon; #tcp_nopush on; keepalive_timeout 65; #gzip on; include /etc/nginx/conf.d/*.conf;}

包含的虛擬主機配置文件

log_format compression ’$remote_addr - $remote_user [$time_local] ’ ’'$request' $status $bytes_sent ’ ’'$http_referer' '$http_user_agent' '$gzip_ratio'’;#access_log /var/log/nginx/log/studyphome.access.log compression buffer=32k;server { listen 80; server_name www.mylaravel.com charset utf-8; #log_format compression ’$remote_addr - $remote_user [$time_local] ’ # ’'$request' $status $bytes_sent ’ # ’'$http_referer' '$http_user_agent' '$gzip_ratio'’; access_log /var/log/nginx/log/www.mylaravel.access.log compression buffer=32k; error_log /var/log/nginx/log/www.mylaravel.error.log; root/home/huangyanxiong/www/laravel/public; location / {#root /var/www/html;try_files $uri $uri/ /index.php?$query_string;index index.html index.htm index.php; } error_page 404 /404.html; # 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; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ .php$ { # proxy_pass http://127.0.0.1:8080; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ .php$ {#root html;fastcgi_pass 127.0.0.1:9090;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;includefastcgi_params; } location ~ ^/(images|javascript|js|css|flash|media|static)/ { #過期30天,靜態文件不怎么更新,過期可以設大一點, #如果頻繁更新,則可以設置得小一點。 expires 30d; } # deny access to .htaccess files, if Apache’s document root # concurs with nginx’s one # location ~ /.ht {deny all; }}回答3:

我怎么覺得是你的域名解析沒有添加記錄對應的記錄呢

標簽: web
相關文章:
主站蜘蛛池模板: 亚洲男人的天堂视频 | 欧美成年黄网站色高清视频 | 日b毛片| 毛片观看网站 | 成人黄色免费网站 | 欧美高清另类自拍视频在线看 | 久久天天躁综合夜夜黑人鲁色 | 欧美精品色精品一区二区三区 | 亚洲理论片在线中文字幕 | 在线视频观看一区 | 精品国产高清毛片 | 毛片在线免费视频 | 午夜影院a级片 | 一级风流片a级国产 | 国产一区二区在免费观看 | 久久伊人热 | 夜色毛片永久免费 | 99精品视频在线观看免费播放 | 香港经典a毛片免费观看看 香港经典a毛片免费观看爽爽影院 | 中文字幕亚洲一区二区v@在线 | 一级特黄aa大片欧美 | 高清偷自拍第1页 | a级毛片免费观看视频 | 99久久综合| 免费精品久久久久久中文字幕 | 92精品国产自产在线观看 | 日韩一级片免费 | 好妞操| 亚洲天堂资源网 | 国产亚洲精品福利片 | 国产精品亚洲欧美云霸高清 | 欧美日韩国产高清一区二区三区 | 一级一级 a爱片免费视频 | 免费观看性欧美大片无片 | 美女很黄很黄 | 男女乱淫真视频免费一级毛片 | 亚洲理论欧美理论在线观看 | 成人免费视频日本 | 午夜刺激爽爽视频免费观看 | 欧美激情视频一级视频一级毛片 | 欧美一级视频免费观看 |