Current time: 05-23-2012, 03:53 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
subdomain control
12-06-2011, 04:59 PM
Post: #1
subdomain control
I have my installation setup as Login(THTinstallhere).domain.com

when and if the site is accessed from http://www.domain.com/login I get CSRF error when a client logs in. as well my register process does not allow for you to continue past ToS. Neither of these are a real issues except I want no lose ends that could cause a customer accessing the directory other than the sub-domain to feel that my site/services are less than par.

Way is the best way to go about this and I do realize this is not a THT issue as much as its a site issues but would love the get some feedback.

Thanks,

Elysia
Find all posts by this user
Quote this message in a reply
12-06-2011, 09:50 PM
Post: #2
RE: subdomain control
Why not just use htaccess to always redirect them to the subdomain? Or move the subdomain outside of public_html so that it cannot be accessed from the main domain? That's usually preferable.

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
Quote this message in a reply
12-06-2011, 10:40 PM
Post: #3
RE: subdomain control
Then just redirect them to the subdomain. Even if they did get past the CSRF error, they would be eventually logged out because the cookie paths (if any) do not match, or the session would be considered invalid for that.
Find all posts by this user
Quote this message in a reply
12-07-2011, 12:00 AM (This post was last modified: 12-07-2011 12:00 AM by zzbomb.)
Post: #4
RE: subdomain control
When you create the subdomain specify a document root that is not in your public_html directory.
Woops. Just noticed kevin already suggested this. Yea... This is the simplest way.

[Image: sig.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
12-07-2011, 01:31 AM
Post: #5
RE: subdomain control
Essentially: /home/user/mysubdomain instead of /home/user/public_html/mysubdomain

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
Quote this message in a reply
12-07-2011, 02:04 AM (This post was last modified: 12-07-2011 02:05 AM by Days.)
Post: #6
RE: subdomain control
Indeed, what Kevin said. Mine look like this:

/home/nginx/domains/domain.com/public/
/home/nginx/domains/sub.domain.com/public/

For where their accessible content is stored.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)