这是我的nginx.conf文件
#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events { worker_connections 1024;}http { include 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 logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { listen 81; server_name www.test.com; root D:/src/web/runroot; error_page 404 /404.html; error_page 500 502 503 504 /50x.html; if ($remote_addr !~ "123.125.169.174") { # rewrite ^ http://lavaradio.wix.com/lavaradio redirect; } rewrite ^/api/(.*?)\.json$ /index.php?route=api/$1&_of=json break; if (!-f $request_filename) { rewrite ^/(.*?)$ /index.php?route=$1 last; } location /index.php { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } }
DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。 可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。后台操作简单,维护方便。 系统主要特点: 1、模板管理功能,下载后,会有多个模板可选择。 2、可以给每个页面设置SEO关键字,有利于搜索引擎收录。可以给每个页面设置别名,从而是让网页的访问网址更加简洁。 3、后台有布局功能。让页面呈
310
大哥,你得加个端口号好不!
www.test.com:81
如果不要端口号,把81改成80
默认是 80 端口,你改成81就要加端口哦
还有 www.test.com 不是你的真是域名,你就得在本地hosts文件里加上
192.168.1.100 www.test.com
192.168.1.100就是你的nginx所在服务器的ip
直接用 phpfind 的吧,没必要在配置上浪费时间
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号