Changes
Title
unchanged
yii2-app-advanced on single domain (Apache, Nginx)
Category
unchanged
How-tos
Yii version
unchanged
2.0
Tags
unchanged
nginx,htaccess,apache,yii2,yii2-app-advanced,single domain
Content
changed
[...]
index index.php;
...
}
```
If you are using prettyUrl, you may need to add the following lines to your Nginx configuration:
```php
server {
location /backend {
try_files $uri $uri/ /backend/index.php$is_args$args;
}
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
}
```
Option 2: The Hard Way
--------
Try this option only if the previous one does not work for you. Because any additional rewrite rules is a performance hit.[...]