Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 9th, 2004, 06:00 AM
tufy tufy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 tufy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Apache on windows + .htaccess

I have run apache on winXp. i have to configure My Custom Error but i
can't access the .htaccess.

I have tried many things.

I have change out .htaccess file name of httpd.conf file. to ht.acl because i have read some were windows can't read .htaccess file.

i have write this statment in in ht.acl file

ErrorDocument 404 /404Handler.php

I have also created 404Handler.php file. but it won't work when i access thepage which is not our site this page won't call.

Any suggation.

thanks in advance.

Reply With Quote
  #2  
Old July 9th, 2004, 07:04 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
The 404 page should display only when a page can't be found. I think it's 401 that you'll want to look for to display a page when somebody is denied access to a directory. Check apache.org to verify.
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
  #3  
Old July 9th, 2004, 11:58 PM
tufy tufy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 tufy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Apache on windows + .htaccess

No luck.

i want some thing like this. if a user come to mysite suppose http://www.abc.com/

and after my URL it will type /david means the URL is being just like that

http://www.abc.com/david then we have to redirect the user to some page how can we trap it.

when we try it it well give error in apache access log is this

[Sat Jul 10 10:21:54 2004] [error] [client 127.0.0.1] File does not exist: c:/program files/apache group/apache/htdocs/abc/david

I browser title bar it will show 404 not found.

Is there configuration issue that i will configure. please let me know.

Reply With Quote
  #4  
Old July 12th, 2004, 10:52 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
A similar error will be displayed in your error_log. If you want to send all such errors to the access log (I don't know why you'd want to do this), you can just change the error log path in the apache conf file so that it matches the access log path. If the ErrorDocument directive isn't working, you may also need to check your main conf file to make sure .htaccess (or ht.acl in your case) is allowed to override http.conf settings. Check apache.org for the docs on this (a search on AllowOverride should help).

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Apache on windows + .htaccess


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT