Jump to content

How to establish website with given website domain


Recommended Posts

I was given an existing server to create a new website. I chose php and mysql as the language / db of choice, replacing the preinstalled asp based website before.

 

I then proceeded to install appserv web-server and created my php website under d:\appserv\www\consis

When I typed http://localhost/consis, I can see the website working fine.

 

Now I am required to point out http://www.xxx.com to my php website, so that when visitors type that address, it will see the php website mentioned. This is where I'm stuck at, how do I do this?

 

I noticed that with the previous asp installation, its asp files were located in c:\intepub\wwwroot\consis and under IIS, it registered an IP address of 202.xxx.xxx.xxx, so I guess this is the address that points out as www.xxx.com

 

Is there a way to register my php files to be pointed out to that given ip address. Please help me.

Again, this is a DNS issue, nothing to do with apache. You need a DNS server (usually supplied by your host or some such service) to resolv the name www.xxx.com to your ip address.

 

Once that is up and working you have a few options. You can either setup a named virtulhost in apache that points to d:\appserv\www\consis as its document root (google apache vhost) or you can move your site into the default document root as defined withing apache's httpd.conf file.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.