【发布时间】:2016-06-24 17:14:15
【问题描述】:
我有很多项目,例如 /var/www/html/test、/var/www/html/test1 等。 只想将我的域附加到这些文件夹之一。 操作系统是 Debian。这是我的站点可用配置
server {
server_name example.me;
root /var/www/html/example.me;
index index.html index.php;
# set expiration of assets to MAX for caching
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
expires max;
log_not_found off;
}
location / {
# Check if a file or directory index file exists, else route it to index.php.
try_files $uri $uri/ /index.php;
}
location ~* \.php$ {
fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
}
}
我希望有人能帮我解决这个问题。
【问题讨论】:
-
它是符号链接到启用站点的?