34k+
News
Guide
API
Wiki
Forum
Community
Places
Members
Hall of Fame
Badges
More
Learn
Books
Resources
Develop
Download Yii
Extensions
Report an Issue
Report a Security Issue
Contribute to Yii
Donate
About
Release Cycle
License
Team
Official Logos and Design
Login
yii2-app-advanced on single domain (Apache, Nginx)
Comparing
#9
with
#10
Revision #10 was created by
QuPsi
on Sep 13, 2021, 7:55:36 PM.
Added info for how to get prettyUrl to work in nginx configuration in the first method.
« Previous (#9)
Next (#11) »
Content
[...]
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.
[...]