Etch Apach2 Virtual Host Error

Discussion in 'Server Operation' started by tfunky, Jan 2, 2008.

  1. tfunky

    tfunky New Member

    Hi All,

    I'm going crazy trying to figure out an issue with a new apache2 server I'm working on...

    I've put Apach2/php5 on Etch.

    I'm trying to configure virtual hosts.

    Apache2 starts with no errors, but when I try to go to the virtual hosts I see a directory listing that shows "apache-default" and "webalizer' directories instead of my virtual host.

    I have the virtual hosts files (sites-available) from a working server, so those should be fine.

    I've done the a2siteenable part to build the symlinks.

    I've got this in /etc/apache2/conf.d/virtual.conf
    Code:
    NameVirtualHost *:80
    
    I've got the html, etc folders in /home/www/sitename (which is where they lived on the old server and where the sites-available config files point them)

    I'm stuck.

    Can someone point out something (probably something obvious) :rolleyes: that I'm missing?

    Thanks!
     
  2. falko

    falko Super Moderator

    What do you type into your browser's address bar? A domain/hostname or just an IP address? If you're using name-based vhosts, you must type in the correct domain/hostname in your browser.
     
  3. tfunky

    tfunky New Member

    Well, I kept beating on it and I isolated it to my .htaccess file.

    When I coped my htdocs dir from the old Sarge server to the new Etch server there were 2 directives that we messing me up.

    First, Follow links was turned on in the htaccss

    Second, noIndex was turned on. Once I commented those 2 lines out it stated working again :)
     

Share This Page