htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Re: where to put redirected page to serve
PostPosted: 28 Nov 2006 08:11 
Offline

Joined: 28 Nov 2006 06:59
Posts: 7
hey I tried this but it is not redirecting me to that page

I types http://192.168.0.100:80/testht.html

rather the testht.html page is showing up than errr.html

Do I need to do some more changes in httpd.conf file



here is my code where I did changes to Directory directve and files



<Directory "C:/Program Files/apchtst">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# 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
#earlier it was None but now its limit
AllowOverride None

#
# Controls who can get stuff from this server.

Order allow,deny
allow from all

<files "testht.html">
Order allow,deny
Allow from All
deny from 192.168.0.101
ErrorDocument 403 errr.html
</files>


</Directory>


Note: I put my errr.html page under "C:/Program Files/apchtst"
so apchtst directory will be having 3 pages
testht.html
testht2.html
errr.html

I want to show errr.html page when a blocked ip addresses tries to see testht.html.

Not all allowed user showed be able to see this errr.html page.

Meanwhile I will try to put htis errr.html page in different forlder and tried to serve.

Thanks(your response gave me energy to do the things)
Neetika


Top
 Profile  
 
 Post subject:
PostPosted: 28 Nov 2006 08:13 
Offline
User avatar

Joined: 25 Sep 2006 04:48
Posts: 242
Code:
AllowOverride Options AuthConfig

<Files testht.html>
Order allow,deny
Allow from All
deny from 192.168.0.102
ErrorDocument 403 /err.html
ErrorDocument 401 /err.html
</Files>


Ok try that. If it still isn't working than its because you are using WINDOWS. And then you should go check out the windows Apache forum http://www.apachelounge.com/

That site is where you should go and ask your questions, I'm just not familiar with running Apache on Windows nor do I recommend it.


Top
 Profile  
 
 Post subject:
PostPosted: 28 Nov 2006 17:54 
Offline

Joined: 28 Nov 2006 06:59
Posts: 7
Hey It worked for external URL like http://google.com
Now I am trying to fetch the page within a local environment.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: MSN [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB