Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On linux can not access modules's route #797

aifeigao opened this issue Jul 24, 2019 · 2 comments


Copy link

commented Jul 24, 2019

I just started using Laravel-modules for the last few days and I have problem on URL routing:

Local can work well, but on our test linux can not work. A moudle module cannot be loaded in a Linux environment. Access route 404 under a moudle

PHP version PHP/7.1.17
Laravel version 5.8.27

This comment has been minimized.

Copy link

commented Jul 24, 2019

server {
listen 2001;
set $root_path '/data/webapps/mobdata_admin/public';
root $root_path;
index index.php index.html index.htm;
try_files $uri $uri/ @rewrite;

    location @rewrite {
            rewrite ^/(.*)$ /index.php?_url=/$1;
location ~ \.php {    
        fastcgi_index /index.php;    
            fastcgi_split_path_info       ^(.+\.php)(/.+)$;  
	fastcgi_param APP_ENV test;
        fastcgi_param PATH_INFO       $fastcgi_path_info;  
            fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;  
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;  
	include                       fastcgi_params;
location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {  
            root $root_path;  
location ~ /\.ht {  
            deny all;  

My project:


when i visit this url, 404 not fund error


This comment has been minimized.

Copy link

commented Jul 24, 2019

did you autoload your module?
Did you try to dd() inside the route?

Oh I just read your first message.
No idea why it wouldn't work in your environment, with normal nginx configs there's nothing else to do there.

@nWidart nWidart closed this Aug 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.