0
我对Nginx服务器有问题,因为它只显示默认页面。虚拟主机和主机文件似乎没问题。我不明白问题在哪里。Nginx服务器只显示默认页面
这里是我的虚拟主机配置:
server {
listen 80;
listen [::]:80;
listen 443 default ssl;
server_name marketplace_unirgy;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
root /var/www/html/marketplace_unirgy/;
index index.php;
#location/{
# index index.html index.php;
# autoindex on;
# #If missing pass the URI to Magento's front handler
# try_files $uri $uri/ @handler;
# expires max;
#}
#need it to execute php
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
include fastcgi.conf;
}
## Magento uses a common front handler
location @handler {
rewrite//index.php;
}
}
而且我的主机:
127.0.0.1 marketplace_unirgy localhost
我的网站是在/var/www/html/marketplace_unirgy
感谢您帮助我在magento数据库中出现'core_config_data'字段'patht'的问题。如果此值未正确设置,您的网址将重定向到此字段中的值。它对我隐藏了。 – kino