Timeline for Nginx location not working when changing php page
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 5, 2024 at 11:20 | comment | added | sga | Assets within the web app are already refered with relative path. When subdirectory is configured in Apache with the below it's working. Not in Nginx. DocumentRoot "/var/www/html" <Directory "/var/www/html"> Options +Indexes +FollowSymLinks +ExecCGI AllowOverride All Require all granted </Directory> Alias /nesting"/var/www/html/nesting/" <Directory "/var/www/html/nesting/"> Options +Indexes +FollowSymLinks +ExecCGI AllowOverride All Require all granted </Directory> | |
| Dec 2, 2024 at 18:06 | comment | added | Ivan Shatsky | In order to made your assets accessible when your index.php file along with its assets is placed in any nested directory, the resulting HTML document should refer its assets using relative URLs (e.g. ./style.css or style.css) rather than absolute ones (e.g. /style.css). | |
| Nov 26, 2024 at 16:49 | history | edited | Marcus Müller | CC BY-SA 4.0 | added 6 characters in body |
| S Nov 26, 2024 at 16:39 | review | First questions | |||
| Nov 27, 2024 at 15:34 | |||||
| S Nov 26, 2024 at 16:39 | history | asked | sga | CC BY-SA 4.0 |