|
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 |
|||
|
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 |
|||
|
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.
|
|||
|
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.
|
|||
|
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 |
|||
|
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. |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)




![[Image: standard.png]](http://twitstamp.com/kmark937/standard.png)
![[Image: standard.png]](http://twitstamp.com/thehostingtool/standard.png)

![[Image: sig.png]](http://zzbomb.com/sig.png)