httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arturo Ignacio Partarrieu Ramos" <suscripcione...@gmail.com>
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 "www.artenovias.cl". So the computer (browser) respond when
typing http://Linux and http://www.artenovias.cl
=========================================
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>
<Directory /srv/www/htdocs>
AllowOverride None
</Directory>
<Directory /srv/www/htdocs/Mambo>
AllowOverride All
</Directory>

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

<VirtualHost *:80>
ServerAdmin webmaster@artenovias.cl
ServerName www,artenovias.cl
 #DocumentRoot /srv/www/vhosts/www.artenovias.cl
#Alias /htdocs/ "/srv/www/vhosts/www.artenovias.cl"
DocumentRoot /srv/www/htdocs
 ScriptAlias /cgi-bin/ "/srv/www/vhosts/www.artenovias.cl/cgi-bin/"
# ScriptAlias /htdocs/ "/srv/www/vhosts/www.artenovias.cl/"
<Directory "/srv/www/vhosts/www.artenovias.cl/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<Directory "/srv/www/vhosts/www.artenovias.cl">
AllowOverride All
</Directory>
 <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.
# http://www.example.com/users/karl-heinz/ --> /home/karl-heinz/public_html/
# AliasMatch ^/users/([a-zA-Z0-9-_.]*)/?(.*) /home/$1/public_html/$2
</IfModule>
<Directory "/srv/www/vhosts/www.artenovias.cl">
Options Indexes FollowSymLinks
AllowOverride AuthConfig None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
=================================
My original idea is

1. that the both URL http://Linux and http://www.artenovias.cl 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 http://www.artenovias.cl/Mambo (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
506-507
The 52400-24067 user is the owner of phpMyAdmin folder and all file inside
except config.inc.php 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?

Thanks!

Mime
View raw message