午夜剧场伦理_日本一道高清_国产又黄又硬_91黄色网战_女同久久另类69精品国产_妹妹的朋友在线

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

web - nginx怎么綁定域名?

瀏覽:152日期: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
相關文章:
主站蜘蛛池模板: 波多野结衣一区二区 | 日本免费网 | 国产精品视频在线观看 | 激情综合区 | 欧美黑人性xxx猛交 欧美日韩在线播放视频 | 激情婷婷六月天 | 成人av在线看 | 成人午夜免费影院 | 91 禁| 九一国产精品 | 91少妇| 日本美女裸体视频 | 免费视频99 | 91狠狠综合 | 国产欧美视频在线 | 四虎永久在线精品 | 青青草超碰在线 | 青青伊人网 | 成人毛片18女人毛片 | 国产精品www色诱视频 | 欧美视频第一页 | 久久久久精 | 中文视频在线观看 | 欧美亚洲网站 | 黄色片在线观看网站 | 日本免费黄色网址 | 日韩欧美高清dvd碟片 | 99久99| 欧美在线一区二区三区四区 | 成年人在线观看视频网站 | 成人福利在线 | 99视频免费看 | 亚洲裸体视频 | 亚洲天天看 | 你懂的在线看 | 成年人在线观看视频网站 | 免费精品在线 | 欧美中字| 四虎影院在线免费播放 | 天天干天天操av | 理论片午夜 |