This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » eZ Publish 5 Platform » Problem with new Virtual Host...

Problem with new Virtual Host Configuration

Problem with new Virtual Host Configuration

Friday 27 March 2015 6:19:58 pm - 4 replies


Since I have upgraded my site to ezpublish5 , with the new virtual host configurations I cannot use my Aliases which point to external directories any more! 

My site: var/www/MySite/ezpublish_legacy

my Alias: var/www/MyAlias

I should have :

Before I had:

<Directory /var/www/MySite/ezpublish_legacy>

Options -Indexes FollowSymLinks MultiViews
AllowOverride All

<IfModule mod_rewrite.c>
.... every thing that should be here

Alias /MyAlias /var/www/MyAlias

<Directory /var/www/MyAlias>       
    Options -Indexes MultiViews       
    AllowOverride All       
    Order allow,deny       
    Allow from all


This just doesnt work with the new one, i got: kernel(20) /404

Is there any solution?Can anyone help?

Friday 27 March 2015 9:35:43 pm

Hello pa,

I'm very glad you posted this question today. I remember you mentioning this problem indirectly in another thread.

I did a bit of research on this topic and a bit of testing myself to find a possible solution.

I found I could get the alias functionality you shared in your examples working with the addition of the following to the virtual host mod_rewrite rules (at the top would be best!) 

RewriteEngine On

RewriteRule ^/MyAlias - [PT]

I found this advice from the following thread, it was a little hard to understand at first but it does work (for me):

I hope this helps!


Modified on Friday 27 March 2015 10:00:24 pm by // Heath

Saturday 28 March 2015 2:01:56 pm

Rewrite rules + aliases can be quite confusing. I ended up on the same stackoverflow link Heath posted, and that's how I did it in the past.

Thank you Heath happy.gif Emoticon

Monday 30 March 2015 10:51:35 am

Thank you Heath , 

I used your solution and it works happy.gif Emoticon

Tuesday 31 March 2015 7:41:40 am

Hello pa,

Congratulations on solving your problem.

I was happy to be able to help you!



You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from