Created
October 16, 2021 16:06
-
-
Save phamngsinh/d1d33801e72b76af47093fa38e3a5676 to your computer and use it in GitHub Desktop.
Nginx Installl Laravel in Wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location /laravel { | |
| alias /home/admin/web/wordpress/public_html/laravel/public; | |
| try_files $uri $uri/ @nested; | |
| location ~ \.php$ { | |
| fastcgi_param SCRIPT_FILENAME $request_filename; | |
| fastcgi_pass 127.0.0.1:9002; | |
| fastcgi_index index.php; | |
| include /etc/nginx/fastcgi_params; | |
| } | |
| } | |
| location @nested { | |
| rewrite /laravel/(.*)$ /laravel/index.php?/ last; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment