HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Could use help with subdomain/aliasdomain (http://www.howtoforge.com/forums/showthread.php?t=58901)

road.rage 28th September 2012 20:08

Could use help with subdomain/aliasdomain
 
Hi,

I've been up and down any how-to I could find but still haven't figured out how to set up a subdomain or alias-domain that does more than create a redirect-loop so far.

Goal: Set up numerous subdomains under one domain.
Attempts so far:

1) sub-domain way:
host: "sub1.domain.name"
domain: "domain.name" (selection)
redirect type: tried them all
redirect path: relative and absolute path to subdomain, nginx error log indicates I most likely put the right folder there but:

result: redirect loop, sometimes in the address bar, sometime in the error.log, sometimes both.

2) alias domain way:
well, basically the same, sometimes it did show the content from an index.php file, but still looped through error pages it could not find and broke.


In my eyes the whole subdomain system is broken since it does not allow to simply enter URL + folder and work, but that's really a different issue, if somebody can point me in the right direction I'm happy as long as I don't have to set up different webspace for each sudomains ( and that's an awful lot ).

till 28th September 2012 22:10

If a subdomain shall have its own folder, then create a new website as described in the manual. The subdomain and aliasdomain functions are made for cms systems that are capable of handling multiple domains in one vhost, they are not made to host subdomains in different folders of a website.

road.rage 28th September 2012 22:30

It does not need to have its entirely own path, the subdomains are just meant to give it a better "look".

So I have this folder layout:

./domain.net/listings/sub1
./domain.net/listings/sub2
...
./domain.net/listings/subx

which should end up being

sub1.domain.net
sub2.domain.net
...
subx.domain.net

This way they can easily share a common main folder. A distinct webspace for each ( and that's quite a few ) would also mean a new ftp-user for each one, right?


All times are GMT +2. The time now is 08:56.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.