Apache Configuration - Dynamic Alias for Dynamic Virtual Host

Completed Posted Jan 21, 2016 Paid on delivery
Completed Paid on delivery

I am trying to setup my new environment, but I am having issues because it requires more configuration.

Here's fully functional configuration for single project in the new environment that I am trying to setup for all projects with VirtualDocumentRoot.

<VirtualHost *:80>

DocumentRoot "/Users/nn/Sites/BaseApp/app"

ServerName [url removed, login to view]

Alias /scripts "/Users/nn/Sites/BaseApp/.tmp/scripts"

Alias /styles "/Users/nn/Sites/BaseApp/.tmp/styles"

<Directory "/Users/nn/Sites/BaseApp/.tmp">

Options FollowSymLinks Multiviews

Order allow,deny

Allow from all

Require all granted

ErrorDocument 403 /[url removed, login to view]

ErrorDocument 404 /[url removed, login to view]

ErrorDocument 500 /[url removed, login to view]

</Directory>

</VirtualHost>

I am trying to recreate that to work for unlimited projects, so dynamic virtual host. Here's sample, but it fails as Alias does not seem to pick up.

<VirtualHost *:80>

ServerAlias *.app

UseCanonicalName Off

VirtualDocumentRoot "/Users/nn/Sites/%1/app"

Alias /scripts "/Users/nn/Sites/%1/.tmp/scripts"

Alias /styles "/Users/nn/Sites/%1/.tmp/styles"

<Directory "/Users/nn/Sites/%1/.tmp">

Options FollowSymLinks Multiviews

Order allow,deny

Allow from all

Require all granted

ErrorDocument 403 /[url removed, login to view]

ErrorDocument 404 /[url removed, login to view]

ErrorDocument 500 /[url removed, login to view]

</Directory>

</VirtualHost>

I am paying for solution to this issue. Hopefully I found someone here at Freelancer.

Apache

Project ID: #9409684

About the project

3 proposals Remote project Active Jan 21, 2016

Awarded to:

codrutpredoi

Hey. My experience with apache web server is vast and I can help you achieve the desired thing. It might be that you are missing a module , but I am not sure.

$25 USD in 1 day
(1 Review)
1.0