Voidmain's cool stuff

Place to discuss anything, almost. No politics, religion, Microsoft, or anything else that I (the nazi censor) deem inappropriate.

Postby Doogee » Sat Mar 13, 2004 10:48 am

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/
Doogee
administrator
administrator
 
Posts: 261
Joined: Fri Jan 10, 2003 1:40 am

Postby Doogee » Sat Mar 13, 2004 11:02 am

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
Doogee
administrator
administrator
 
Posts: 261
Joined: Fri Jan 10, 2003 1:40 am

Postby Void Main » Sat Mar 13, 2004 11:04 am

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".
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Doogee » Sat Mar 13, 2004 11:07 am

i did that before, no help. the IP still thinks its the virtualhost
Doogee
administrator
administrator
 
Posts: 261
Joined: Fri Jan 10, 2003 1:40 am

Postby Void Main » Sat Mar 13, 2004 11:09 am

So the "Go Away" is in the index.html in /var/www/doogee and not in /var/www/html, is that correct?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Doogee » Sat Mar 13, 2004 11:09 am

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
Doogee
administrator
administrator
 
Posts: 261
Joined: Fri Jan 10, 2003 1:40 am

Postby Doogee » Sat Mar 13, 2004 11:10 am

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
Doogee
administrator
administrator
 
Posts: 261
Joined: Fri Jan 10, 2003 1:40 am

Postby Void Main » Sat Mar 13, 2004 11:11 am

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.
Last edited by Void Main on Sat Mar 13, 2004 11:13 am, edited 1 time in total.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Doogee » Sat Mar 13, 2004 11:13 am

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/
Doogee
administrator
administrator
 
Posts: 261
Joined: Fri Jan 10, 2003 1:40 am

Postby Void Main » Sat Mar 13, 2004 11:15 am

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).
Last edited by Void Main on Sat Mar 13, 2004 11:19 am, edited 1 time in total.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Doogee » Sat Mar 13, 2004 11:19 am

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>
Doogee
administrator
administrator
 
Posts: 261
Joined: Fri Jan 10, 2003 1:40 am

Postby Void Main » Sat Mar 13, 2004 11:21 am

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.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Doogee » Sat Mar 13, 2004 11:24 am

check for yourself :D


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


Thanks Void Main :)
Last edited by Doogee on Sat Mar 13, 2004 11:28 am, edited 1 time in total.
Doogee
administrator
administrator
 
Posts: 261
Joined: Fri Jan 10, 2003 1:40 am

Postby Void Main » Sat Mar 13, 2004 11:27 am

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.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Previous

Return to The Lounge

Who is online

Users browsing this forum: No registered users and 0 guests

cron