how to run nette 2.3.5 over https
Notice: This thread is very old.
- ydenda
- Member | 21
Hello,
I have trouble to setup nette 2.3.5 sandbox on secured virtualhost.
Apache2 virtualhost configuration (https) points to www folder of
sandbox.
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.
- Aurielle
- 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.