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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.