Click to See Complete Forum and Search --> : url needing a / at the end?


npereira
10-16-2002, 10:06 PM
Everytime I surf to my web server I need to put a ' / '
at the end of the url (if not specifying a file) so that the index.php file comes up. Or else, this is the error I receive;

www._default_.com could not be found. Please check the name and try again.

How can I fix this?

Thanks

NPereira

jhoegl
10-16-2002, 11:01 PM
You did specify index.php as the "default" file to get right?

gruvy
10-16-2002, 11:29 PM
If you don't put the / at the end, then it redirects to a DNS server. If " default .com" is not registered, you'll get this error. You can fix this by setting up your own DNS server and adding an entry for " default .com" (with spaces). Read up on DNS and BIND. I'm still somewhat a newbie, so I can't go into further detail. I have set this up before but that was a few installs prior.

npereira
10-17-2002, 08:02 AM
I don't want to setup BIND just for that.


jhoegl,

Where do I put the index.php, I mean on what line of httpd.conf ?

jhoegl
10-17-2002, 08:36 AM
I dont know, as I am pritty new to linux, also it depends on your ver of Linux. I do know that with win2k you have to specify what you want as the "default" file. So that when someone comes to your site, it looks for that file.

Choozo
10-17-2002, 09:44 AM
Search for the 'DirectoryIndex' line in your httpd.conf file, and add index.php (or default.php - if that is your default name for the autoloaded index page).


DirectoryIndex index.html index.htm index.php

npereira
10-17-2002, 05:35 PM
This did not help.

I put in the index.php and restarted the httpd and same thing is happeneing.
You can see for yourself here;
The web server (https://smehome.homeip.net/gallery)

Try it without the /gallery and try it with the /gallery/

Choozo
10-18-2002, 04:12 PM
Apart from showing a empty document, both ways show the same content from here...

npereira
10-18-2002, 04:20 PM
Originally posted by Choozo
Apart from showing a empty document, both ways show the same content from here...

It does ? cool, thanks


now, how to setup multiple subdomains? see new thread @ setup subdomains (http://linuxnewbie.org/forum/showthread.php?s=&threadid=69940)

Thanatos
10-18-2002, 04:49 PM
I error out every time I try. The only hand-typed url that came up was index.html.
index.php didn't 'exist'.

Thanatos
10-18-2002, 04:51 PM
just surfed back over there and it works. how odd. you must be doing server maintenance!:cool:

npereira
10-18-2002, 04:54 PM
Ya ! I'm trying to get my subdomains to work properly! GRRRRR ! This is driving me nut's

See my other post about this specific issue as THIS TOPIC is resolved.

Thanks