I have installed a copy of our live shop on a subdomain, when I am visiting the index.php from my computer the works... but this doesn't always work on all devices.
When I am visiting the subdomain index.php from our office or on my or a collegues mobile with WiFi, it works!
But when I have disabled WiFi with mobile internet enabled, the index.php file says Forbidden. The admin/index.php does always works. Switching back to WiFi and the index.php works just as it should. Also from my internet connection from home I can't visit the page. It keeps saying Forbidden.
I think that this is related to the nginx.conf file, I tried some things but I can't find the right settings. These settings are the same as on our live shop on the normal domain.
Anybody experienced this?
Current .conf file
Code: Select all
location ~* /admin {
index index.php;
try_files $uri $uri/ /index.php?_route_=$1;
location ~ \.php$ {
echo_exec @main;
}
}
location ~* ^\/.* {
try_files $uri @opencart;
location ~ \.php$ {
echo_exec @main;
}
}
location @opencart {
rewrite ^/(.+)$ /index.php?_route_=$1 last;
}