<VirtualHost *:80>
DocumentRoot "C:/codes/www/tp/public/"
ServerName tp.test
ServerAlias *.tp.test
<Directory "C:/codes/www/tp/public/">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>正常, 使用 nginx 时
server {
listen 80;
server_name tp.test *.tp.test;
root "C:/codes/www/tp/public/";
index index.php index.html index.htm;
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
}访问不到 最佳答案