Closed Thread Icon

Topic awaiting preservation: apache config: accessing dirs. Pages that link to <a href="https://ozoneasylum.com/backlink?for=12189" title="Pages that link to Topic awaiting preservation: apache config: accessing dirs." rel="nofollow" >Topic awaiting preservation: apache config: accessing dirs.\

 
Author Thread
GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 04-22-2002 10:26

ok, i set up a linux box as a webserver but im having troubles with the apache.

if i type http://mybox/mydir
it thinks that mydir is a file in the root directory and therefore i get a 404.
if i want to access that dir i have to type http://mybox/mydir/
with a trailing slash.

is there a way to configure apache that it accesses dirs without that slash?

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-22-2002 23:03

Hah I had this problem too but stopped worrying about it.
However since you asked I bugged my friendly neighborhood sysadmin

Basically you need to add

ServerName yourdomain.com (see the linked explaination)

I set this on my test box just to local host and it worked fine for me even when accessing the box by name I think the big thing is the value needs to be set.





.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 04-22-2002 23:22

ok. thanks.
i cant access that box right now, but ill try this asap.
thank you!

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 04-25-2002 15:45

well, im now sittin in front of the servers httpd.conf and there is already an entry with the form:

ServerName mycomputer.mydomain.com

and just FYI the problem doesnt only occur with webusers ( /~grumble/) but with every directory on the server.
to me it seems like a DNS problem cause i cant access the webserver via the name (mycomputer) but only via the ip address (http://192.168.123.123)

stinx
Bipolar (III) Inmate

From: London, UK
Insane since: Apr 2002

posted posted 04-29-2002 18:40

Found these in the apache.org website - don't know how much use they'll be...
http://httpd.apache.org/docs-2.0/mod/mod_dir.html
http://httpd.apache.org/docs-2.0/mod/core.html#UseCanonicalName

stinx


« BackwardsOnwards »

Show Forum Drop Down Menu