Forum Moderators: phranque
The sites are different URLs and require authentication via a central DB.
i.e.
www.example.com/detail/ gives a full view of information
www.ukexample.com/nodetail gives a limited view.
How do I stop users simply deleting the 'no' and getting the detail context. The URLs point to the same server and same IP. I need to keep the document root completely seperate for each URL and lock it somehow.
Any help would be appreciated.
Welcome to WebmasterWorld!
Can you clarify the relationship between domain "example.com" with "/detail" and "ukexample.com" with "/nodetail," please?
This all depends on how your authentication scheme works. If you were using Apache Basic Authentication, then users would be authenticated only to one domain.
Jim
When the customer goes to the URL apache does a redirect (via an index.html file meta redirect in the document root) to the tomcat application directory.
Example below.
Apache conf file 1
<VirtualHost 1.2.3.4>
ServerName ukexample.com
DocumentRoot /usr/local/apache2/htdocs/ukcustomer
ErrorLog /var/logs/httpd/ukcustomer_error_log
CustomLog /var/logs/hd_log combined
<Location "/*.jsp">
JkUriSet worker ajp13:localhost:8009
</Location>
</VirtualHost>
Apache conf file 2
<VirtualHost 1.2.3.4>
ServerName example.com
DocumentRoot /usr/local/apache2/htdocs/
ErrorLog /var/logs/httpd/error_log
CustomLog /var/logs/hd_log combined
<Location "/*.jsp">
JkUriSet worker ajp13:localhost:8009
</Location>
</VirtualHost>
The customer can then ammend the URL from /nodetail to /detail and see the detailed output. They have authenticated via a JDBC realm at this point.
I am guessing it is an apache solution but it may be a tomcat configuration. Thanks.
-ben
Red alert! That meta-refresh is not a redirect, it is a client-side browser reload. Therefore, you are "exposing" your Tomcat URL to the public -- and to search engine results listing.
In the strongest (friendly) terms, I advise you to get rid of that little beauty right now! Do a search here on WebmasterWorld for terrifying phrases like "meta-refresh destroyed my ranking" and "302 hijacking" and you will learn why (after reading several hundred posts by affected members).
Meta-refresh is for free-hosting web sites where there is no other available mechanism. If you've got mod_rewrite and scripting available, then rewriting and redirection should be done server-side.
Jim