亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

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

web - nginx怎么綁定域名?

瀏覽:86日期: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
相關文章:
主站蜘蛛池模板: 国产一级片观看 | 日本一级毛片视频无遮挡免费 | 伊甸园久久网站 | 国产欧美亚洲精品综合在线 | 美女美女高清毛片视频 | 亚洲日本高清成人aⅴ片 | 欧美亚洲国产精品久久高清 | 亚洲色图18p | 日韩免费在线观看视频 | 91看片在线观看 | 国产精品爽黄69天堂a | 国产亚洲精品久久精品6 | 人人做天天爱夜夜爽中字 | 国产精品怕怕怕视频免费 | 亚洲国产成人久久综合碰碰动漫3d | 香蕉视频视频 | 华人黄网站大全 | 欧美大片a一级毛片视频 | 97福利在线| 欧美日韩一区二区在线观看视频 | 日韩精品一区在线观看 | 日韩免费三级 | 三级国产精品 | 亚洲欧美在线精品 | 午夜一级毛片免费视频 | 日本一级特黄毛片免费视频9 | 色黄啪啪18周岁以下禁止观看 | 免费看三级黄色片 | 亚洲第一区精品日韩在线播放 | 欧美中文日韩 | 午夜视频吧 | 日本不卡高清中文字幕免费 | 亚洲国产精品一区二区久久hs | 欧美一级成人一区二区三区 | 青青青在线观看视频免费播放 | 国产精品久久久视频 | 亚洲精品一区激情区偷拍 | 亚洲欧美日韩v中文在线 | 日本一级特黄毛片免费视频 | 热99re久久精品精品免费 | 婷婷综合缴情亚洲狠狠图片 |