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

您的位置:首頁技術(shù)文章
文章詳情頁

web - nginx怎么綁定域名?

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

問題描述

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

問題解答

回答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;}

包含的虛擬主機(jī)配置文件

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天,靜態(tài)文件不怎么更新,過期可以設(shè)大一點(diǎn), #如果頻繁更新,則可以設(shè)置得小一點(diǎn)。 expires 30d; } # deny access to .htaccess files, if Apache’s document root # concurs with nginx’s one # location ~ /.ht {deny all; }}回答3:

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

標(biāo)簽: web
相關(guān)文章:
主站蜘蛛池模板: 色综合久久久久久久久五月性色 | 日韩毛片网 | 国产欧美一区二区三区视频 | 国产成人精品福利网站人 | 57pao一国产成永久免费 | 国产v在线在线观看羞羞答答 | 草草免费| 91麻豆国产极品在线观看洋子 | 国产成+人+综合+亚洲欧美丁香花 | 欧美一级毛片特黄黄 | 成人做爰免费网站 | 青青草在线视频免费观看 | 国产成人精品cao在线 | 一道本一区二区三区 | 美国a级作爱片免费观看美国 | 黄色免费观看视频 | 色极影院 | 激激婷婷综合五 | 风间中文字幕亚洲一区中文馆 | 国产精品午夜性视频网站 | 国产在线一二三区 | 51精品资源视频在线播放 | 成人av在线播放 | 欧美特级黄 | 久久久久久天天夜夜天天 | 91午夜影院 | 午夜在线成人 | 久久亚洲国产成人影院 | 国产人碰人摸人爱视频 | 欧美色视频日本片免费高清 | 免费观看毛片 | 免费一级毛片在级播放 | 欧美三级欧美成人高清www | 三级黄色在线视频 | 欧美日本一道本 | 欧美一区亚洲二区 | 欧美一级黄色片免费看 | 亚洲综合色视频 | 日本高清免费不卡视频 | 在线亚洲精品防屏蔽 | 国产片一区二区三区 |