Forum Moderators: phranque

Message Too Old, No Replies

virtual host problem

         

gridorian

11:01 am on May 19, 2008 (gmt 0)

10+ Year Member



Hey there! I have a little problem and I don't know how to solve it.

I have to virtual hosts (domain and subdomain):

<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName example.ro
DocumentRoot /home/bl3/public_html
<Directory />
Options FollowSymLinks
# AllowOverride None
</Directory>
<Directory /home/bl3/public_html>
Options Indexes FollowSymLinks MultiViews
# AllowOverride None
Order allow,deny
allow from all
#DirectoryIndex index.php index.aspx index.html
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>

<Directory "/home/bl3/public_html/cgi-bin">
# AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.itmc.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

</VirtualHost>

and

<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName us.example.ro
DocumentRoot /home/bl3/public_html/us
<Directory />
Options FollowSymLinks
# AllowOverride None
</Directory>
<Directory /home/bl3/public_html/us>
Options Indexes FollowSymLinks MultiViews
# AllowOverride None
Order allow,deny
allow from all
DirectoryIndex index.php index.aspx index.html
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>

<Directory "/home/bl3/public_html/us/cgi-bin">
# AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.itmc.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

</VirtualHost>

The second one does not work. Can you please tell me why?

[edited by: jdMorgan at 10:47 pm (utc) on May 20, 2008]
[edit reason] examplified [/edit]

gridorian

11:24 am on May 19, 2008 (gmt 0)

10+ Year Member



solved it. 10q

selaviano

9:29 pm on May 20, 2008 (gmt 0)

10+ Year Member



hi,

could you tell us how you fix it? it is possible, that someone has the same problem and can't find the bug...

regards