ispCP - Board - Support - VHCS fork

Full Version: Service address?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
sorry if i duplicate a post or asking something that is already answered...

Is there a way that the added domain can be accessed before the dns is pointed to the server? ex. http://someserver.com/newdomain.com


Thank you
It exist a Thread in the German Corner --> http://www.isp-control.net/forum/neuem-k...-2014.html

Maybe you should translate it with google or something.

Greez BeNe
i translated it with google but couldn't understand almost anything..
is there somebody that can write a how to in english


thank you
hei hei
thre are some code snipplets you need to modify the tpl files ...
computer-german is not that difficult...

take
Code:
/etc/ispcp/apache/parts/dmn_entry.tpl

search
Code:
ServerAlias     www.{DMN_NAME} {DMN_NAME} *.{DMN_NAME}

change to
Code:
ServerAlias     www.{DMN_NAME} {DMN_NAME} *.{DMN_NAME} {SUEXEC_USER}.hostdomain.tld

and you new host will also be avalilable via e.g. vu2005.hostdomain.tld

of course: set your domain name instead of hostdomain.tld, maybe you need to change the apache Serveralias for hostdomain.tld, and thirs: the dns also needs a catchall for hostname.tld...

/J
my dns did not have catch all... so i try to make the change this way

ServerAlias www.{DMN_NAME} {DMN_NAME} *.{DMN_NAME} hostdomain.tld/{DMN_NAME}

After creating a new domain i check ispcp.conf in /etc/apache....

and it contain alias myserveraddress.com/demo.com

but trying to access this address is giving me 404 error

Any ideas
this does not work.
you only can put hostnames/domainnames there - no paths...

/J
{DMN_NAME} is a domain... not a path but anyway i got your point

So is there anyway that i can make service address possible ?

I think we have to create separed file like the awstats one 01_awstats
maybe 02_servicedmn and create the service addresses rules there

Or maybe in the 00_master.conf

please lets make it Wink
hostdomain.tld/{DMN_NAME} is a path:

http://domain.com/otherdomain.com

so, dive into your dns and configure so that all *.domain.tld ends on your server:

* 1D IN A my.server.ip.number

/Joximu
joximu i understood what you mean but my current dns is external and do not support catch all records.

However i remember that before when i had ensim on another server... after i add a domain name it was instantly avalable thru service address like serverdomain.com/~newdomain.com or something like this.

I cannot believe that this is not possible with ispcp ;(
I never had good feelings with this service address:
install a Typo3 - you'll always have some strange side effects if you work with
server/~user/typo3/

And. Very important!
this worked with mod_php - but now almost every virtualhost is running php as a different user -the same user as the ftp user for this customer.
So, doing a "maindomain.tld/~user" runs under the maindomain user - and the maindomain php cannot see/execute the php in userdomain.tld

So, the only practicable thing are ServerAliases as described above.

/Joximu
Reference URL's