It's better to have a sub-directory in /var/www for default web files

Bug #273425 reported by Omid Mottaghi
6
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

It's better to have a sub-directory in /var/www for default web files. Because /var/www is a directory for web sitessss.

For example, I want create two websites for two different users? Or I want to limit access to my own dir? Or ...
I can do all of these now, but its really more structural, to have a directory in the /var/www for default web site. So then if I install a web based application (eg. phpMyAdmin) it creates its link to this default web site directory.

I think that it is a bug!

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

 /var/www is just the default. If you wish to have multiple websites for different users then you need to take a look at virtual hosts.

https://help.ubuntu.com/community/ApacheMySQLPHP#Virtual Hosts

Revision history for this message
Omid Mottaghi (omidmottaghi) wrote :

Thanks Alan.

But I know how to set up a virtual host. I used to have my own virtual hosts in my own directory, but /home/user MUST have read access for others and it is not a good permission for my home directory! I really prefer to change my home directory permission to 700.

So, I changed my default web directory to something like /var/www/default, but most of web applications goes wrong, and I MUST move their symbolic link from /var/www to /var/www/default.

I know I can handle this, but I thought it really better to have a sub directory in /var/www for the default web site!

Changed in apache2:
status: Invalid → Incomplete
Revision history for this message
Mathias Gug (mathiaz) wrote :

/var/www has been the default for ages. I don't see why it should be moved to /var/www/default. Most of the web applications expect it to be so.

Changed in apache2:
status: Incomplete → Won't Fix
Revision history for this message
Omid Mottaghi (omidmottaghi) wrote :

But in RedHat, there is another directory in /var/www for default website.

Revision history for this message
Dustin Kirkland ξƒΏ (kirkland) wrote : Re: [Bug 273425] Re: It's better to have a sub-directory in /var/www for default web files

On Thu, Sep 25, 2008 at 3:24 PM, Omid Mottaghi <email address hidden> wrote:
> But in RedHat, there is another directory in /var/www for default
> website.

That's all ***very*** configurable via normal Apache configuration means.

The default location in Ubuntu is /var/www. You can run hundreds of
other websites as you desire in /var/www/* or anywhere you desire by
configuring /etc/apache2/sites-available/*, and enabling the site with
a2ensite.

:-Dustin

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.