
-----------------------------------
Amailer
Sat Aug 30, 2003 11:26 am

Changing the DirectoryIndex
-----------------------------------
Ok, to change a Directory Index i gatta put:

DirectoryIndex MYFILENAME.php


Right?
Err its not workign though :S
can anyone help me?

-----------------------------------
octopi
Sat Aug 30, 2003 11:40 am


-----------------------------------
Yup, that looks right.

Are you putting it in a .htaccess file. or the main config file?
Try putting it in your default virtual server block. (if you tryed the main file before)

If your trying the .htaccess file way check to see if your server uses .htaccess, you can change it to different file name, that might have happened.

Error log say anything?

Whats happening? You just said its not working, thats not enough...
Does the directory listing come up? Or does it load another page?
Does it display an Internal Server Error?

-----------------------------------
Blade
Sat Aug 30, 2003 11:46 am


-----------------------------------
... are you using the VirtualDocumentRoot that was posted in the other topic? because if you are you'll have to change that instead

-----------------------------------
Amailer
Sat Aug 30, 2003 12:09 pm


-----------------------------------
Log error: [Sat Aug 30 12:20:51 2003] [warn] (OS 64)The specified network name is no longer available.  : winnt_accept: Asynchronous AcceptEx failed.

And, yes im putting it in my .htaccess file
I want to change index file to portal.php index of index.php. Only for that folder.

-----------------------------------
Amailer
Sat Aug 30, 2003 12:26 pm


-----------------------------------

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride All


HEhe,
K i got it. It was None. So now everythign works. EVER MY CUSTOM ERRORS!
(atleast i think my custom errors work :S)

EDIT: For the custom error...HOW ODD it comes as: the path i put to the error file.

I.E: http://forum.termix-zero.ath.cx/sadasd

What i put in my .htaccess in my htdocs:

ErrorDocument 403 ./error/403.php
ErrorDocument 404 ./error/404.php
ErrorDocument 401 ./error/401.php


And what is written in the 404.php:

404 ERROR TEST


-----------------------------------
Homer_simpson
Sat Aug 30, 2003 12:54 pm


-----------------------------------
what exactly do u mean create a .htaccess file u mean open a newtext file and save it as .htaccess ?

-----------------------------------
Amailer
Sat Aug 30, 2003 1:10 pm


-----------------------------------
No, not possiable.
Get it from somewhere :S

-----------------------------------
octopi
Sat Aug 30, 2003 2:36 pm


-----------------------------------
It is posible. you just say it as  

".htaccess" 

should work on most programs (include the qoutes.)

Or just change the name of the Options file in your httpd.conf.

-----------------------------------
Amailer
Sat Aug 30, 2003 6:03 pm


-----------------------------------
well anyways... i still can't get it to work

-----------------------------------
octopi
Sat Aug 30, 2003 6:09 pm


-----------------------------------
I thought you said it did work?


HEhe, 
K i got it. It was None. So now everythign works. 


If you mean the .htaccess thing, try it in notepad, it should work fine.

".htaccess" with the qoutes.

-----------------------------------
Amailer
Sat Aug 30, 2003 7:32 pm


-----------------------------------

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride All


HEhe,
K i got it. It was None. So now everythign works. EVER MY CUSTOM ERRORS!
(atleast i think my custom errors work :S)

EDIT: For the custom error...HOW ODD it comes as: the path i put to the error file.

I.E: http://forum.termix-zero.ath.cx/sadasd

What i put in my .htaccess in my htdocs:

ErrorDocument 403 ./error/403.php
ErrorDocument 404 ./error/404.php
ErrorDocument 401 ./error/401.php


And what is written in the 404.php:

404 ERROR TEST


Thats what happned.

-----------------------------------
octopi
Sat Aug 30, 2003 7:41 pm


-----------------------------------
apache is interpretting your path as a message, and not a path.
(ErrorDocument CODE path/message is the syntax)

You should remove the . from the begining of the path.

The path is from document root.

-----------------------------------
Amailer
Sat Aug 30, 2003 9:04 pm


-----------------------------------
tried that it gives me this message:

Not Found

The requested URL /index.phps was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.45 (Win32) Server at forum.termix-zero.ath.cx Port 80



-----------------------------------
octopi
Sat Aug 30, 2003 9:06 pm


-----------------------------------
error log entries?

(give me about the last 10)


...it says it can't find the file.
What path did you use for the 404 file, and where is it really.
Whats the FULL path to the 404 error file.
Whats the FULL path for document root.

-----------------------------------
octopi
Sat Aug 30, 2003 9:07 pm


-----------------------------------
Based on what you have said previously.
You need to make a file and put it here:
http://forum.termix-zero.ath.cx/error/404.php

-----------------------------------
Amailer
Sat Aug 30, 2003 9:08 pm


-----------------------------------
[Sat Aug 30 21:20:24 2003] [error] [client 65.92.67.198] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error

(though i already showed that)

-----------------------------------
octopi
Sat Aug 30, 2003 9:09 pm


-----------------------------------

...it says it can't find the file.
What path did you use for the 404 file, and where is it really.
Whats the FULL path to the 404 error file.
Whats the FULL path for document root.


Plus, I will need about the last TEN lines from the error log.

-----------------------------------
Amailer
Sat Aug 30, 2003 9:24 pm


-----------------------------------
http://termix-zero.ath.cx/error/404.php
http://termix-zero.ath.cx/error/401.php
http://termix-zero.ath.cx/error/403.php

C:\Program Files\Apache Group\Apache2\htdocs\error\404.php
C:\Program Files\Apache Group\Apache2\htdocs\error\401.php
C:\Program Files\Apache Group\Apache2\htdocs\error\403.php

C:\Program Files\Apache Group\Apache2\htdocs\.htaccess



[Sat Aug 30 21:17:57 2003] [error] [client 192.168.1.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error
[Sat Aug 30 21:20:06 2003] [error] [client 65.92.67.198] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error
[Sat Aug 30 21:20:06 2003] [error] [client 65.92.67.198] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error
[Sat Aug 30 21:20:21 2003] [error] [client 65.92.67.198] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error
[Sat Aug 30 21:20:21 2003] [error] [client 65.92.67.198] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error
[Sat Aug 30 21:20:24 2003] [error] [client 65.92.67.198] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error
[Sat Aug 30 21:20:24 2003] [error] [client 65.92.67.198] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error
[Sat Aug 30 21:25:58 2003] [error] [client 65.92.67.198] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error, referer: http://www.compsci.ca/v2/viewtopic.php?t=1812&postdays=0&postorder=asc&start=0
[Sat Aug 30 21:25:58 2003] [error] [client 65.92.67.198] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error, referer: http://www.compsci.ca/v2/viewtopic.php?t=1812&postdays=0&postorder=asc&start=0
[Sat Aug 30 21:25:59 2003] [error] [client 65.92.67.198] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error, referer: http://www.compsci.ca/v2/viewtopic.php?t=1812&postdays=0&postorder=asc&start=0
[Sat Aug 30 21:26:00 2003] [error] [client 65.92.67.198] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error, referer: http://www.compsci.ca/v2/viewtopic.php?t=1812&postdays=0&postorder=asc&start=0
[Sat Aug 30 21:34:50 2003] [error] [client 192.168.1.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error
[Sat Aug 30 21:34:50 2003] [error] [client 192.168.1.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/termix/Forum/error



-----------------------------------
octopi
Sat Aug 30, 2003 9:25 pm


-----------------------------------
Based on what you have said previously.
You need to make a file and put it here:
http://forum.termix-zero.ath.cx/error/404.php


Try that....

-----------------------------------
Amailer
Sat Aug 30, 2003 9:38 pm


-----------------------------------
Can't it be in the htdos?

-----------------------------------
octopi
Sat Aug 30, 2003 9:41 pm


-----------------------------------
....If you look it is.

Your using virtual server's so your document root is different for
forum.t...cx then it is for
ter....cx

Like I said before. The error pages are loaded from the document root.

If you went to 
http://termix-zero.ath.cx/termix/Forums/somenotexistingfile

you would have gotten your 404 error. 

but then when going to
http://forums.termix-zero.ath.cx/somenotexistingfile

you wouldn't get your page.

-----------------------------------
Amailer
Sat Aug 30, 2003 10:20 pm


-----------------------------------
k thanks
