httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arturo Ignacio Partarrieu Ramos" <>
Subject [users@httpd] please help me!
Date Mon, 06 Mar 2006 02:00:35 GMT
Hi, I'm trying to host my own web sites, in my machine, with my own domain,
under SUSE 10. My idea is to name my localhost as Linux and a virtualhost
with the domain "". So the computer (browser) respond when
typing http://Linux and
Actual configuration:

Linux is my default host, so Apache by default asign for it the Root
Directory /srv/www/htdocs and in the httpd.con file

<Directry />
Options None
AllowOverride None
Order deny, allow
Deny from all
<Directory /srv/www/htdocs>
AllowOverride None
<Directory /srv/www/htdocs/Mambo>
AllowOverride All

I don't know if I do wrong but for the virtualhost the
Root Directory is /srv/www/vhosts/ and the file is as follow

<VirtualHost *:80>
ServerName www,
 #DocumentRoot /srv/www/vhosts/
#Alias /htdocs/ "/srv/www/vhosts/"
DocumentRoot /srv/www/htdocs
 ScriptAlias /cgi-bin/ "/srv/www/vhosts/"
# ScriptAlias /htdocs/ "/srv/www/vhosts/"
<Directory "/srv/www/vhosts/">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
<Directory "/srv/www/vhosts/">
AllowOverride All
 <IfModule mod_userdir.c>
# Note that the name of the user directory ("public_html") cannot simply be
# changed here, since it is a compile time setting. The apache package
# would have to be rebuilt. You could work around by deleting
# /usr/sbin/suexec, but then all scripts from the directories would be
# executed with the UID of the webserver.
UserDir public_html
# The actual configuration of the directory is in
# /etc/apache2/mod_userdir.conf.
Include /etc/apache2/mod_userdir.conf
# You can, however, change the ~ if you find it awkward, by mapping e.g.
# --> /home/karl-heinz/public_html/
# AliasMatch ^/users/([a-zA-Z0-9-_.]*)/?(.*) /home/$1/public_html/$2
<Directory "/srv/www/vhosts/">
Options Indexes FollowSymLinks
AllowOverride AuthConfig None
Order allow,deny
Allow from all
My original idea is

1. that the both URL http://Linux and serve from
the same directory /srv/www/htdocs (but I don't know how Alias and
ScriptAlias works)

2. to run Mambo in the URL (mysql and
phpMyAdmin are running properly) so I need that all the Mambo folder be
Writeable (actually is Unwriteable)
Can you tell me if there is an easier way to do it and how to correct the
Directory problem.

The root user is the owner of the Mambo folder, but the files inside are
The 52400-24067 user is the owner of phpMyAdmin folder and all file inside
except that is owned by the root user.

Why is that? how can I correct them?
What is UserDir public_html for?
What is public_html?


View raw message