Content
You are here:
Avoid Virtualhost in Apache
Added by Deleted user over 10 years ago
I followed this great article for installation of OpenProject.
It actually works, but I’d like to avoid the use of Virtualhost in the http openproject.conf file because it spoils functionality of other web-bases installations.
Can I do that? My first guess was (and I am no Apache expert) to use alias instead of Virtualhost, i.e.:
—
- <VirtualHost *:80>
- ServerName mtdk
- DocumentRoot /home/openproject/openproject/public
Alias /openproj /home/openproject/openproject/public
<Directory /home/openproject/openproject/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
- —
But when accessing <my_server_ip>/openproj in the browser it claims:
—
You don’t have permission to access /openproj/ on this server.
—
Any suggestions?
Best regards,
Kenneth
Replies (1)
Hi Kenneth
I think you should put permissions inside directory container and remove documentRoot information like this
And make sure that apache user have access permission on the directory /home/openproject/openproject/public
By the way it’s sufficient if you have this in your config file
/Because the following two lines mean that you can access /home/openproject/openproject/public by typing in your browser http://mtdk/
let me know if it worked for you and sorry for my poor english
Maïssa