Incorrect URL path with multiple apache alias
Posted: 03 May 2019, 11:24
Hi everyone,
I recently tried to install the aimeos demo inside my server running apache2. Inside this server I have multiple laravel installations and I tried to configure them like this inside my httpd.conf:
I also modified my .htaccess file under public adding:
and APP_URL in .env file:
While both my other installations are working fine, both responding with correct routing:
{server_url}/XXX/products
{server_url}/XXY/products
Aimeos seems to responde correctly only when I try to get to the homepage {server_url}/aimeos/ redirecting me to {server_url}/aimeos/list.
All others routes responds like this: {server_url}/detail/15/Demo_article/0 removing my alias in the url and generating 404.
I can't understand the source of this problem.. is there any way to fix this?
Thanks in advance,
Michael
I recently tried to install the aimeos demo inside my server running apache2. Inside this server I have multiple laravel installations and I tried to configure them like this inside my httpd.conf:
Code: Select all
<VirtualHost *:80>
ServerName {server_name}
DocumentRoot /var/www/XXX/public
Alias /XXY /var/www/XXY/public
Alias /aimeos /var/www/aimeos/public
<Directory /var/www/XXX>
AllowOverride All
</Directory>
<Directory /var/www/XXY>
AllowOverride All
</Directory>
<Directory /var/www/aimeos>
AllowOverride All
</Directory>
</VirtualHost>
Code: Select all
RewriteBase /aimeos
and APP_URL in .env file:
Code: Select all
APP_URL={server_url}/aimeos
{server_url}/XXX/products
{server_url}/XXY/products
Aimeos seems to responde correctly only when I try to get to the homepage {server_url}/aimeos/ redirecting me to {server_url}/aimeos/list.
All others routes responds like this: {server_url}/detail/15/Demo_article/0 removing my alias in the url and generating 404.
I can't understand the source of this problem.. is there any way to fix this?
Thanks in advance,
Michael