mon1
asked on
Alias Referencing of Web Site
I have developed a web site for an organisation and launched in our web server and i named the site as http://ourdomainname/organisationname.
But my client wants his web address as his organisationname.com . But wants to keeps the full data in my server.
I wants to clarify one thing from U. If i am registering a new domain as his organisation.com and if he gives his his organisation.com as site address , it has to connect http://ourdomainname/organisationname . Client wants only the domainname ffrom them. also wants to keep data in my server.
In my server we have launched so many web sites.
So while registering the new domain name, what hostname & ip address i have to give. Hostname is my domain name or mydomainname/organisationn ame .
Pl clarify these things.
Waiting for an early reply.
But my client wants his web address as his organisationname.com . But wants to keeps the full data in my server.
I wants to clarify one thing from U. If i am registering a new domain as his organisation.com and if he gives his his organisation.com as site address , it has to connect http://ourdomainname/organisationname . Client wants only the domainname ffrom them. also wants to keep data in my server.
In my server we have launched so many web sites.
So while registering the new domain name, what hostname & ip address i have to give. Hostname is my domain name or mydomainname/organisationn
Pl clarify these things.
Waiting for an early reply.
ASKER
our web server is apache1.3.1.
mon1,
In apache, (version 1.3) there is a Virtual Host directive. In order to get this to work, you need to register your client domainname to your ISP (perhaps the same place you register yours), and the ip address will be your web server ip address.)
To make the transition goes smoothly, make sure you Apache is ready to accept the request. In your httpd.conf, the (towards the end of the httpd.conf - and it is commented), there should be some example on the Virtual Host directive.
Reference site:
http://locus.apache.org/www.apache.org/docs/mod/core.html#virtualhost
<VirtualHost 10.1.2.3>
ServerAdmin webmaster@host.foo.com
DocumentRoot /www/docs/host.foo.com
ServerName host.foo.com
ErrorLog logs/host.foo.com-error_lo g
TransferLog logs/host.foo.com-access_l og
</VirtualHost>
make sure you replace the host.foo.com with the appropriate www-your-client.domain.com .
Then restart your apache. (kill -HUP `cat /usr/local/apache/httpd.pi d`)
The only drawback is that, is anyone enter the IP number instead of www.yourclientdomain.com, they will get you web page, and not your client's page.
Good luck,
samri
In apache, (version 1.3) there is a Virtual Host directive. In order to get this to work, you need to register your client domainname to your ISP (perhaps the same place you register yours), and the ip address will be your web server ip address.)
To make the transition goes smoothly, make sure you Apache is ready to accept the request. In your httpd.conf, the (towards the end of the httpd.conf - and it is commented), there should be some example on the Virtual Host directive.
Reference site:
http://locus.apache.org/www.apache.org/docs/mod/core.html#virtualhost
<VirtualHost 10.1.2.3>
ServerAdmin webmaster@host.foo.com
DocumentRoot /www/docs/host.foo.com
ServerName host.foo.com
ErrorLog logs/host.foo.com-error_lo
TransferLog logs/host.foo.com-access_l
</VirtualHost>
make sure you replace the host.foo.com with the appropriate www-your-client.domain.com
Then restart your apache. (kill -HUP `cat /usr/local/apache/httpd.pi
The only drawback is that, is anyone enter the IP number instead of www.yourclientdomain.com, they will get you web page, and not your client's page.
Good luck,
samri
ASKER
Hi Samri
That means Virtual Host configuration has to be done in my web server.
I have One more dbt.
In our web server , we launched six web sites. all these web sites we given the web address as
http://ourdomainname/organisationname
But for all thses clients , i want to give the site address as http://organisationname.ourdomainname
I have made entry in httpd.conf for all the web sites as follows. But it is not working
NameVirtualHost 111.222.333.444(our ip address)
<VirtualHost 111.222.333.444>
ServerName organisationname.ourdomain name
DocumentRoot /httpd/apache/htdocs/organ isationdat a1
ServerAdmin webmaster@ourdomainname
</VirtualHost>
NameVirtualHost 111.222.333.444
<VirtualHost 111.222.333.444>
ServerName organisationname.ourdomain name
DocumentRoot /httpd/apache/htdocs/organ isationdat a2
ServerAdmin webmaster@ourdomainname
</VirtualHost>
At present if am checking any web site addrees
it is not working. But if i check http://ourdomain , i am getting the first organisations web site..
How can i confgiure this.
How can do this.
That means Virtual Host configuration has to be done in my web server.
I have One more dbt.
In our web server , we launched six web sites. all these web sites we given the web address as
http://ourdomainname/organisationname
But for all thses clients , i want to give the site address as http://organisationname.ourdomainname
I have made entry in httpd.conf for all the web sites as follows. But it is not working
NameVirtualHost 111.222.333.444(our ip address)
<VirtualHost 111.222.333.444>
ServerName organisationname.ourdomain
DocumentRoot /httpd/apache/htdocs/organ
ServerAdmin webmaster@ourdomainname
</VirtualHost>
NameVirtualHost 111.222.333.444
<VirtualHost 111.222.333.444>
ServerName organisationname.ourdomain
DocumentRoot /httpd/apache/htdocs/organ
ServerAdmin webmaster@ourdomainname
</VirtualHost>
At present if am checking any web site addrees
it is not working. But if i check http://ourdomain , i am getting the first organisations web site..
How can i confgiure this.
How can do this.
mon1,
There are a series of example for Virtual Host configuration in Apache web site, and it's worth checking out. Plus checkout the sample configuration (there are a bunch of them, I can't figure out which one is appropriate for your setup). The one your might be interested to look at is Name Based Virtual Hosting.
http://www.apache.org/docs/vhosts/index.html
Anyway, after going thru your response, check whether the Line1 and Line2 are intended to be the same, I believe the first one is OK, but the second one (Line2) should be organisationname2.ourdomai n. Please double check.
<VirtualHost 111.222.333.444>
Line 1: ServerName organisationname.ourdomain name
DocumentRoot /httpd/apache/htdocs/organ isationdat a1
ServerAdmin webmaster@ourdomainname
</VirtualHost>
NameVirtualHost 111.222.333.444
<VirtualHost 111.222.333.444>
Line 2: ServerName organisationname.ourdomain name
DocumentRoot /httpd/apache/htdocs/organ isationdat a2
ServerAdmin webmaster@ourdomainname
</VirtualHost>
Samri
There are a series of example for Virtual Host configuration in Apache web site, and it's worth checking out. Plus checkout the sample configuration (there are a bunch of them, I can't figure out which one is appropriate for your setup). The one your might be interested to look at is Name Based Virtual Hosting.
http://www.apache.org/docs/vhosts/index.html
Anyway, after going thru your response, check whether the Line1 and Line2 are intended to be the same, I believe the first one is OK, but the second one (Line2) should be organisationname2.ourdomai
<VirtualHost 111.222.333.444>
Line 1: ServerName organisationname.ourdomain
DocumentRoot /httpd/apache/htdocs/organ
ServerAdmin webmaster@ourdomainname
</VirtualHost>
NameVirtualHost 111.222.333.444
<VirtualHost 111.222.333.444>
Line 2: ServerName organisationname.ourdomain
DocumentRoot /httpd/apache/htdocs/organ
ServerAdmin webmaster@ourdomainname
</VirtualHost>
Samri
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What software do you use for the Web server? Is it IIS, Apache, Netscape, or what?
Samri