Page 2 of 2

PostPosted: Sat Mar 13, 2004 10:48 am
by Doogee
root@doogee:/var/www# ls -la
total 24
drwxr-xr-x 6 root root 4096 Mar 14 02:02 ./
drwxr-xr-x 18 root root 4096 Dec 6 10:25 ../
drwxr-xr-x 2 root root 4096 Nov 4 14:54 cgi-bin/
drwxr-xr-x 6 root root 4096 Mar 14 02:24 doogee/
drwxr-xr-x 2 root root 4096 Mar 14 02:25 htdocs/
drwxr-xr-x 3 root root 4096 Nov 4 14:54 icons/

PostPosted: Sat Mar 13, 2004 11:02 am
by Doogee
as a little show of whats happening i put a file in /var/www/doogee called index.html

Now it works when i use the DNS, BUT it also works when i use the IP as well, which is not meant to happen. Before this index.html was in /var/www/htdocs

PostPosted: Sat Mar 13, 2004 11:04 am
by Void Main
Is that httpd.conf file you linked to the current one you are using? If so then you still have not added the '<Directory "/var/www/doogee"> ... </Directory>' statement as I mentioned before. Make it an exact copy of your '<Directory "/var/www/html"> ... ... </Directory>' and right below it.

EDIT: I can get to it now and yes they both say "Go Away".

PostPosted: Sat Mar 13, 2004 11:07 am
by Doogee
i did that before, no help. the IP still thinks its the virtualhost

PostPosted: Sat Mar 13, 2004 11:09 am
by Void Main
So the "Go Away" is in the index.html in /var/www/doogee and not in /var/www/html, is that correct?

PostPosted: Sat Mar 13, 2004 11:09 am
by Doogee
now ive changed it back so that index.html is in /var/www/htdocs and we're back to the same old story. its asif there was no such directory as /var/www/htdocs

PostPosted: Sat Mar 13, 2004 11:10 am
by Doogee
Void Main wrote:So the "Go Away" is in the index.html in /var/www/doogee and not in /var/www/html, is that correct?


it was, but i changed it back

PostPosted: Sat Mar 13, 2004 11:11 am
by Void Main
Actually, come to think of it I have set up a virtual host as the first virtual host that uses the same document root as my default (/var/www/html). I'll bet if you set up a VirtualHost definition before your doogee.kicks-ass.org one that points to /var/www/htdocs it will work. Set one up for a local name like I have in mine (you can just define the name in /etc/hosts).

Using the IP address "should" have taken you to /var/www/htdocs I thought, but apparently it just takes you to the first vhost definition.

PostPosted: Sat Mar 13, 2004 11:13 am
by Doogee
errr, sorry lost you there?

(by the way):
Code: Select all
[Sun Mar 14 03:36:01 2004] [error] [client 24.217.13.21] Directory index forbidden by rule: /var/www/doogee/
[Sun Mar 14 03:36:24 2004] [error] [client 24.217.13.21] Directory index forbidden by rule: /var/www/doogee/
[Sun Mar 14 03:41:35 2004] [error] [client 10.0.0.1] Directory index forbidden by rule: /var/www/doogee/
[Sun Mar 14 03:46:53 2004] [error] [client 10.0.0.1] Directory index forbidden by rule: /var/www/doogee/
[Sun Mar 14 03:58:53 2004] [error] [client 165.228.129.12] Directory index forbidden by rule: /var/www/doogee/
[Sun Mar 14 03:59:03 2004] [error] [client 165.228.129.12] Directory index forbidden by rule: /var/www/doogee/
[Sun Mar 14 04:06:31 2004] [notice] SIGHUP received.  Attempting to restart
[Sun Mar 14 04:06:31 2004] [warn] module php4_module is already loaded, skipping
[Sun Mar 14 04:06:31 2004] [warn] module mod_php4.c is already added, skipping
[Sun Mar 14 04:06:33 2004] [notice] Apache/1.3.29 (Unix) PHP/4.3.4 configured -- resuming normal operations
[Sun Mar 14 04:06:33 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sun Mar 14 04:07:53 2004] [error] [client 165.228.129.12] Directory index forbidden by rule: /var/www/doogee/
[Sun Mar 14 04:08:04 2004] [error] [client 10.0.0.1] Directory index forbidden by rule: /var/www/doogee/
[Sun Mar 14 04:08:06 2004] [error] [client 10.0.0.1] Directory index forbidden by rule: /var/www/doogee/
[Sun Mar 14 04:08:18 2004] [error] [client 10.0.0.1] Directory index forbidden by rule: /var/www/doogee/

PostPosted: Sat Mar 13, 2004 11:15 am
by Void Main
Do you have an "index.html" in your /var/www/doogee? If not, and you want the file list to be displayed, then you have to allow directory indexes (add "Indexes" to your "Options" keyword). You have apparently added an index.html after those error messages or I wouldn't be seeing anything but a forbidden message (which I was getting earlier).

PostPosted: Sat Mar 13, 2004 11:19 am
by Doogee
oh right, its a directory indexing thing.


Im trying to do this virtual host like your old config
Code: Select all
<VirtualHost *>
    ServerName whatgoeshere
    ServerAlias isthisnecesarry?
    ServerAdmin root@localhost
    DocumentRoot /var/www/htdocs
</VirtualHost>

PostPosted: Sat Mar 13, 2004 11:21 am
by Void Main
The ServerAlias is not necessary but "whatgoeshere" should be a valid host name that resolves to an IP address. I would just add "whatgoeshere" to your /etc/hosts on your web server and associate it with the IP address of your web server. It should be resolveable by your web server but doesn't have to be resolvable by anyone else. It's just a dummy entry for the default virtual host directory. I don't know if this is the proper way to do it but it was the only way I could think of to do it.

PostPosted: Sat Mar 13, 2004 11:24 am
by Doogee
check for yourself :D


EDIT: If you dont want to check the n you heard it here first, IT WORKS!


Thanks Void Main :)

PostPosted: Sat Mar 13, 2004 11:27 am
by Void Main
Looks like you got it! Just in time too because I'm just heading out the door to go watch the Supercross. Won't be home until midnight. I'll check in on your progress when I get home. Good job.