Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Anybody willing to help me out with Apache?

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    5 Posts 2 Posters 3.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tubaguy50035
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • T
        tommyboy180
        last edited by

        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> 
           ServerAlias myothersite.com
           ServerAdmin tom@mysite.com
           ServerName www.myothersite.com
        ErrorLog /var/log/myothersite.com
        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 127.0.0.0/255.0.0.0 ::1/128</directory> 
        LogLevel emerg</virtualhost> 
        

        -Tom Schaefer
        SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

        Please support pfBlocker | File Browser | Strikeback

        1 Reply Last reply Reply Quote 0
        • T
          tubaguy50035
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • T
            tommyboy180
            last edited by

            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.

            -Tom Schaefer
            SuperMicro 1U 2X Intel pro/1000 Dual Core Intel 2.2 Ghz - 2 Gig RAM

            Please support pfBlocker | File Browser | Strikeback

            1 Reply Last reply Reply Quote 0
            • T
              tubaguy50035
              last edited by

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.