Nginx支援虛擬目錄的配置

2021-06-07 19:19:30 字數 600 閱讀 2985

配置檔案示例:

server

if (!-f $request_filename)

}#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

#*****==虛擬目錄也支援php

location /pma

location ~^/pma/.+\.php$

#*****=

# pass the php scripts to fastcgi server listening on 127.0.0.1:9000

#location ~ \.php$

# deny access to .htaccess files, if apache』s document root

# concurs with nginx』s one

#location ~ /\.ht

}

nginx 配置之 虛擬目錄

server location ht location phpadmin location php 要注意的是,location phpadmin 和 location phpadmin 是完全不同的。前者可以訪問到目錄,而後者將被重定向到伺服器,如 http 127.0.0.1 phpadmin ...

apache 配置虛擬目錄

apache http.conf配置虛擬目錄 alias b c htdocs blabla options indexes followsymlinks allowoverride none order allow,deny allow from all alias tt e twwork jxt...

apache配置虛擬目錄

servername admin.dede.com serveradmin webmaster localhost documentroot var dedecms admin assignuserid www admin www data options followsymlinks allowo...