Computer Science Canada Changing the DirectoryIndex |
Author: | Amailer [ Sat Aug 30, 2003 11:26 am ] | ||
Post subject: | Changing the DirectoryIndex | ||
Ok, to change a Directory Index i gatta put:
Right? Err its not workign though :S can anyone help me? |
Author: | octopi [ Sat Aug 30, 2003 11:40 am ] |
Post subject: | |
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? |
Author: | Blade [ Sat Aug 30, 2003 11:46 am ] |
Post subject: | |
... are you using the VirtualDocumentRoot that was posted in the other topic? because if you are you'll have to change that instead |
Author: | Amailer [ Sat Aug 30, 2003 12:09 pm ] |
Post subject: | |
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. |
Author: | Amailer [ Sat Aug 30, 2003 12:26 pm ] | ||||||
Post subject: | |||||||
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:
And what is written in the 404.php:
|
Author: | Homer_simpson [ Sat Aug 30, 2003 12:54 pm ] |
Post subject: | |
what exactly do u mean create a .htaccess file u mean open a newtext file and save it as .htaccess ? |
Author: | Amailer [ Sat Aug 30, 2003 1:10 pm ] |
Post subject: | |
No, not possiable. Get it from somewhere :S |
Author: | octopi [ Sat Aug 30, 2003 2:36 pm ] |
Post subject: | |
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. |
Author: | Amailer [ Sat Aug 30, 2003 6:03 pm ] |
Post subject: | |
well anyways... i still can't get it to work |
Author: | octopi [ Sat Aug 30, 2003 6:09 pm ] |
Post subject: | |
I thought you said it did work? Amailer wrote: 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. |
Author: | Amailer [ Sat Aug 30, 2003 7:32 pm ] | ||||||
Post subject: | |||||||
Amailer wrote:
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:
And what is written in the 404.php:
Thats what happned. |
Author: | octopi [ Sat Aug 30, 2003 7:41 pm ] |
Post subject: | |
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. |
Author: | Amailer [ Sat Aug 30, 2003 9:04 pm ] | ||
Post subject: | |||
tried that it gives me this message:
|
Author: | octopi [ Sat Aug 30, 2003 9:06 pm ] |
Post subject: | |
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. |
Author: | octopi [ Sat Aug 30, 2003 9:07 pm ] |
Post subject: | |
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 |
Author: | Amailer [ Sat Aug 30, 2003 9:08 pm ] |
Post subject: | |
[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) |
Author: | octopi [ Sat Aug 30, 2003 9:09 pm ] |
Post subject: | |
octopi wrote: ...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. |
Author: | Amailer [ Sat Aug 30, 2003 9:24 pm ] | ||
Post subject: | |||
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
|
Author: | octopi [ Sat Aug 30, 2003 9:25 pm ] |
Post subject: | |
octopi wrote: 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.... |
Author: | Amailer [ Sat Aug 30, 2003 9:38 pm ] |
Post subject: | |
Can't it be in the htdos? |
Author: | octopi [ Sat Aug 30, 2003 9:41 pm ] |
Post subject: | |
....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. |
Author: | Amailer [ Sat Aug 30, 2003 10:20 pm ] |
Post subject: | |
k thanks |