Hallo erstmal,
aktuell arbeite ich daran eine Anwendung auf einem Digital Ocean LAMP Dropplet zu deployen. Das hat auch alles ganz gut geklappt und ich sehe die Login-Maske, die sich unter der Route '/' verbirgt. Soweit so gut.
Wenn ich jetzt das Administrator- Kennwort eingebe, sollte ich auf die /admin Route weitergeleitet werden. Stattdessen bekomme ich ein normales 404 vom Apache Server.
Ich verwende Annotations im Controller um die Routen zu definieren und habe probehalber versucht Routen in der ./config/routes.yaml zu definieren. Ohne Erfolg.
Habt ihr eine Idee woran es liegen könnte?
Viele Grüße
Alex
Route im Controller:
/etc/apache2/sites-available/xxx.conf:
aktuell arbeite ich daran eine Anwendung auf einem Digital Ocean LAMP Dropplet zu deployen. Das hat auch alles ganz gut geklappt und ich sehe die Login-Maske, die sich unter der Route '/' verbirgt. Soweit so gut.
Wenn ich jetzt das Administrator- Kennwort eingebe, sollte ich auf die /admin Route weitergeleitet werden. Stattdessen bekomme ich ein normales 404 vom Apache Server.
Ich verwende Annotations im Controller um die Routen zu definieren und habe probehalber versucht Routen in der ./config/routes.yaml zu definieren. Ohne Erfolg.
Habt ihr eine Idee woran es liegen könnte?
Viele Grüße
Alex
Route im Controller:
PHP-Code:
/** * @Route("/admin/", name="admin_main_page") */
Code:
<VirtualHost *:80> ServerName xxx.de ServerAlias www.xxx.de DocumentRoot /var/www/xxx.de/public <Directory /var/www/xxx.de/public> AllowOverride None Require all granted Allow from All <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] </IfModule> </Directory> # uncomment the following lines if you install assets as symlinks # or run into problems when compiling LESS/Sass/CoffeeScript assets # <Directory /var/www/xxx.de> # Options FollowSymlinks #</Directory> # optionally disable the RewriteEngine for the asset directories # which will allow apache to simply reply with a 404 when files are # not found instead of passing the request into the full symfony stack <Directory /var/www/xxx.de/public/bundles> <IfModule mod_rewrite.c> RewriteEngine Off </IfModule> </Directory> ErrorLog /var/log/apache2/xxx.de_com_error.log CustomLog /var/log/apache2/xxx.de_com_access.log combined # optionally set the value of the environment variables used in the application SetEnv APP_ENV prod SetEnv APP_SECRET xxx SetEnv DATABASE_URL "mysql:/xxx:xxx@xxxx:xxxxxx/xxxx" </VirtualHost> ~
Kommentar