Anybody willing to help me out with Apache?

  • I've just setup a new web server using Apache and I've run into some head aches.  I'd like to be able to do name-based virtual hosting.  I think I have it the syntax for the virtual host file all figured out, but whenever I start the Apache server, it tells me that it can't bind to the ip address and is unable to listen.  So it brings up the default site, all the time.  Anybody have any suggestions?

  • Copy your default and expand it.

     <virtualhost *:80="">DocumentRoot /some/dir/blah
       <directory>Options FollowSymLinks
    		AllowOverride None</directory> 
    	 <directory some="" dir="">Options Indexes FollowSymLinks MultiViews
    		AllowOverride None
    		Order allow,deny
    		allow from all</directory> 
    	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    	 <directory "="" usr="" lib="" cgi-bin"="">AllowOverride None
    		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    		Order allow,deny
    		Allow from all</directory> 
    ErrorLog /var/log/
    CustomLog /var/log/apache2/otheraccess.log "combined"
        Alias /doc/ "/usr/share/doc/"
        <directory "="" usr="" share="" doc="">Options Indexes MultiViews FollowSymLinks
            AllowOverride None
            Order deny,allow
            Deny from all
            Allow from ::1/128</directory> 
    LogLevel emerg</virtualhost> 

  • Copy the default site?  I'm not sure what you're asking me to do.

  • Yes, just like the example above is a copy of the default.
    Keep it port 80 and just change Document root, ServerAlias, ServerName, and what ever else you need changed.

    Then restart Apache2 and you're golden.

  • I think I had problems with my install.  I have it working on my ubuntu box with no problems.  Thanks though