- Member | 21
I have trouble to setup nette 2.3.5 sandbox on secured virtualhost.
Apache2 virtualhost configuration (https) points to www folder of
When the address is accessed, it falls back to http (http virtualhost is not set, therefore apache error page is displayed)
When the browser is pointed to example.com/index.php, nette 404 error page is displayed(https protocol).
Is there something misconfigured on my site?
thank you in advance.
- Member | 1281
You need to enable HTTPS on your routes.
// either for each route individually $router = new Route(..., ..., Route::SECURED); // or globally, like this Route::$defaultFlags = Route::SECURED;
If you are using other implementations of IRouter aside from Route, the global default flags won't affect them.