Current time: 11-22-2024, 03:23 PM Hello There, Guest! (LoginRegister)


Post Reply 
how to view a website via IP address rather than hostname???
Author Message
NetworkExpertise Offline
Junior Member
*

Posts: 22
Joined: Mar 2008
Reputation: 0
Post: #1
how to view a website via IP address rather than hostname???
I need the ability to view a clients website before its moved over to my servers via the virtual ip of my server. In the past I have had this working with other hosting software where I type in the url http://0.0.0.0/~customer. Please help.
(This post was last modified: 06-27-2008 01:51 AM by NetworkExpertise.)
06-27-2008 01:50 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: how to view a website via IP address rather than hostname???
AFAIK this feature is not implemented. The easiest solution that comes to my mind would be adding "{DMN_NAME}.your.server.tld" to the "/etc/ispcp/apache/parts/dmn_entry.tpl" ServerAlias directive, regenerate the domain configurations (wiki explains how) and set *.your.server.tld to always resolve as your server IP (this step depends on how you manage your server's fqdn).

After doing this you should be able to access customer accounts as "customer.dmn.your.server.tld".
(This post was last modified: 06-27-2008 03:39 AM by kilburn.)
06-27-2008 03:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Ali_ix Offline
Newbie
*

Posts: 7
Joined: Jun 2008
Reputation: 0
Post: #3
RE: how to view a website via IP address rather than hostname???
You can also enable userdir module in apache, and change its configuration to point to users htdocs directory, then you can access through http://ip/~cutomer_domain

For more info: http://httpd.apache.org/docs/2.0/mod/mod_userdir.html
06-27-2008 04:07 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #4
RE: how to view a website via IP address rather than hostname???
mod_userdir won't work because of the different permissions (fastcgi / suexec)
We suggest using the http://cust-domain.your-domain.tld approach like kilburn already suggested.
06-27-2008 05:14 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Ali_ix Offline
Newbie
*

Posts: 7
Joined: Jun 2008
Reputation: 0
Post: #5
RE: how to view a website via IP address rather than hostname???
I didn't noticed that, I am using mod_userdir already for a directory based (/~user) server and as you claim I am gonna be in trouble.

Since i cant use sub-domains, What do you recommend for this situation? (domain.com/~user or domain.com/user)
06-27-2008 05:22 PM
Visit this user's website Find all posts by this user Quote this message in a reply
nuno Offline
Junior Member
*

Posts: 92
Joined: Jun 2008
Reputation: 1
Post: #6
RE: how to view a website via IP address rather than hostname???
This is valid in "/etc/ispcp/apache/parts/dmn_entry.tpl" ?

ServerAlias www.{DMN_NAME} {DMN_NAME} *.server.foo.net

thanks
Nuno
07-04-2008 11:00 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #7
RE: how to view a website via IP address rather than hostname???
no, it should be:

ServerAlias www.{DMN_NAME} {DMN_NAME} {DMN_NAME}.server.foo.net
07-04-2008 04:25 PM
Visit this user's website Find all posts by this user Quote this message in a reply
nuno Offline
Junior Member
*

Posts: 92
Joined: Jun 2008
Reputation: 1
Post: #8
RE: how to view a website via IP address rather than hostname???
kilburn Wrote:no, it should be:

ServerAlias www.{DMN_NAME} {DMN_NAME} {DMN_NAME}.server.foo.net
yes it's correct
{DMN_NAME}.server.foo.net
=
e.g. sub.domain.com.server.foo.net
domain.com.server.foo.net

and zones?

Code:
>
A/AAAA Records

Host Name                       IP Address                         TTL
    *                              xxx.192.70.xxx                   default

is correct?
07-04-2008 08:18 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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