Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

virtual path/alias problem :(

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  MOD_JK --> Apache + Tomcat  
Author Message
devnull

External


Since: Sep 09, 2003
Posts: 4



(Msg. 1) Posted: Wed Dec 31, 2003 12:50 am
Post subject: virtual path/alias problem :(
Archived from groups: alt>apache>configuration (more info?)

Hi,

At my webspace (an apache server on some unix) i have

/public_html/ which is the root for domain1,
/public_html/domain2/ which is the root for domain2.

im running membership based sites, so both
/public_html/members/ (domain1) and /public_html/domain2/members/ (domain2)
are password protected with htaccess.

now i want to share a content folder which is currently placed at
/public_html/members/content/ and i can do that with alias
with no problem, but there is a catch, when making
/public_html/domain2/members/content an alias for
/public_html/members/content, the htaccess from the last, will kick in, so
that even if users have entered domain2 they dont have access too the
content folder in domain1, how can i work around this ? i need to share a
content folder, and i dont want
it to be placed at /public_html/content/ and then make an alias from both
sites if i can avoid it, as it will be totally unprotected there withouth
htaccess... one could argue that noone will ever know that the actual path
is free for use, as they will only be
entering through the restricted member sections, from which it will look as
if the folder is placed in.

but i would really like a safe solution, we wanted to place the content
folder out of the public_html at first, but found out
mod_alias wont link anything that aint in the webspace/public_html folder...

i tried searching at google for answers and saw other people with my
problem, but couldnt find any solutions... i hope you can help me...

thanks and have a happy new year !

-Simon

 >> Stay informed about: virtual path/alias problem :( 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed Dec 31, 2003 11:51 am
Post subject: Re: virtual path/alias problem :( [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Simon [2700] <devnull.DeleteThis@linux.org> wrote:
 > /public_html/domain2/members/content an alias for
 > /public_html/members/content, the htaccess from the last, will kick in, so
 > that even if users have entered domain2 they dont have access too the

Put the same users in both 'domains', so the user that entered one
can enter also the second. Or use the 'satisfy' clause in your
..htaccess

See the documentation on <a style='text-decoration: underline;' href="http://www.apache.org" target="_blank">www.apache.org</a>

Davide


--
| Q: Why is Microsoft's Product Support a failure? A: Because Microsoft
| needs a Support Group instead.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: virtual path/alias problem :( 
Back to top
Login to vote
devnull

External


Since: Sep 09, 2003
Posts: 4



(Msg. 3) Posted: Wed Dec 31, 2003 2:23 pm
Post subject: Re: virtual path/alias problem :( [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > Put the same users in both 'domains', so the user that entered one
 > can enter also the second. Or use the 'satisfy' clause in your
 > .htaccess
 >
<font color=purple> > See the documentation on <a style='text-decoration: underline;' href="http://www.apache.org</font" target="_blank">www.apache.org</font</a>>

Hi
i cant make the satisfy clause work Sad

please help me, i wrote it like this:

Satisfy Any
SetEnvIfNoCase Referer "^http://domain\.com/" good_referer=1
order allow,deny
allow from env=good_referer

AuthName "Authorized Users Only"
AuthType Basic
AuthUserFile /home2/path/.htpasswd
<Limit GET POST>
require valid-user
</Limit>

and it still works fine for the users which is going to enter their
usernames, but the ones coming from another domain, still
has to enter a username and password they dont have...

on the other domain the url they are comming from is
<a style='text-decoration: underline;' href="http://domain.com/members/content" target="_blank">http://domain.com/members/content</a> (which is an alias for the dir
we are trying to enter). now does it have any saying that it is not the full
url i tryped in, and also in same (or most) cases
users will type <a style='text-decoration: underline;' href="http://www." target="_blank">www.</a> in front of the domain, and i maybe they will be using
big letters (though i think thats is no problem, judging by the NoCase part
of SetEnv). anything above AuthName is something i found in an example on
the internet through
google, just cant make it work Sad

thanks for helping out
-Simon<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual path/alias problem :( 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
problem with Alias - Hi all, I've managed to configure Apache with Tomcat so to use the Cocoon framework for the publishing of an e-magazine.. I would like to make available the directory of the magazine (situated in the %CATALINA_HOME%\webapps\cocoon\magazine folder)..

problem with /manual/ alias - Hi, I have a problem that doesn't seem to have been covered by the usual google search.. I can't get alias to work, not my own creations mind, but the ones built in such as /manual/ which I understand is supposed to diplay the index.html that is..

weird problem with URL path - Hi, I just run into a weird problem with my new updated apache server. If I type in http://mydomain.com/directory/ the server loads up the default index.htm just fine. But if I remove the back slash of the URL, ie. if I type..

virtual host problem - hi all i have add a virtual host in httpd.conf when i try to visit the url from the web my.ip/sitename all images's path point to my.ip/images how can i point image path to my.ip/sitename/images without change href from ="/images" to ="...

Virtual Hosts Problem - Hi Group, I'm having trouble getting Virtual Hosts to work on my Mandrake 9,1 box. I'm using the Advx release of Apache for Mandrake, and it switches between 1.3x and 2.0.x (currently 2.0.44) by executing one of two scripts. I've followed a lot of the..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]