Skip navigation

VirtualHost Not Pointing

809 Views 1 Reply Latest reply: Oct 17, 2012 5:27 PM by BioRich RSS
BioRich Level 1 Level 1 (65 points)
Currently Being Moderated
Oct 15, 2012 2:05 PM

Hi folks.


For some reason, a new virtualhost I have isn't loading right.  It's somehow bringing up the default domain.  Here is my apache entry:


<VirtualHost *:80>

          ServerName myexample


          DocumentRoot "/Library/WebServer/Documents/myexample"

          DirectoryIndex index.html index.lasso

          CustomLog "/var/log/apache2/myexample_log" "%h %l %u %t \"%r\" %>s %b"

          ErrorLog '|/usr/sbin/rotatelogs "/var/log/apache2/myexample_error_log" 604800 -240'

          ErrorDocument 404 /error.html

          <IfModule mod_ssl.c>

                    SSLEngine Off

                    SSLCertificateFile "/etc/certificates/Default.crt"

                    SSLCertificateKeyFile "/etc/certificates/Default.key"

                    SSLCipherSuite "ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:!SSLv2:+EXP:+eNULL"


          <IfModule mod_dav.c>

                    DAVLockDB "/var/run/davlocks/.davlock100"

                    DAVMinTimeout 600


          <IfModule mod_mem_cache.c>

                    CacheEnable mem /

                    MCacheSize 4096


          <Directory "/Library/WebServer/Documents/myexample">

                    AllowOverride None

                    <IfModule mod_dav.c>

                              DAV Off


                    Options All +Includes -ExecCGI +MultiViews -Indexes


          <IfModule mod_rewrite.c>

                    RewriteEngine On

                    RewriteCond %{REQUEST_METHOD} ^TRACE

                    RewriteRule .* - [F]


          <IfModule mod_proxy_balancer.c>

#                    ProxyPass / balancer://balancer-group/

#                    ProxyPassReverse / balancer://balancer-group/

                    <Proxy "balancer://balancer-group">



          <IfModule mod_alias.c>

                    Alias "/collaboration" "/usr/share/collaboration"

                    Alias "/icons/" "/usr/share/httpd/icons/"

                    Alias "/error/" "/usr/share/httpd/error/"


#          Include /etc/apache2/httpd_users.conf

#          Include /etc/apache2/httpd_directory.conf

#          Include /etc/apache2/httpd_groups.conf

#          Include /etc/apache2/httpd_teams_required.conf

          LogLevel notice



The apache conf file name is 0004_any_80_myexample.conf inside the apache2/sites/ directory. 


There's a lot of junk in there, but they're all conditionals and nothing that really deals with the home directory, other than DocumentRoot and DirectoryIndex, both of which are set. 


My box is indeed getting the request, as my default domain is being served up, and I see the requests only in the default domain log, not the new domain log, which is properly set.  The error log for the new domain is empty.  Nothing in the default domain's error log with respect to requests being shunted. 


Internal DNS is for to go to, just like the other domains.  So apache is next in line, and it's only showing up on the default domain. 


Any help appreciated.  I would have manually set this virtualdomain, whose .conf file entry resides beside other VirtualHost domains that work just fine.  I want to stick to the Server Admin application, as I don't want to break anything, but upon this inspection, I don't see anything wrong.  I've restarted the box, and it's been 3 days since I moved on this.  Things should be working.


Any advice appreciated.  I can't see anything wrong. 



iMac, Mac OS X (10.5.8)


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.