kaydknight Posted April 7, 2008 Share Posted April 7, 2008 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. Quote Link to comment Share on other sites More sharing options...
trq Posted April 7, 2008 Share Posted April 7, 2008 This is a DNS issue, nothing to do with php. Quote Link to comment Share on other sites More sharing options...
kaydknight Posted April 8, 2008 Author Share Posted April 8, 2008 I see, I've searched on DNS tutorials, but I still can't find out how to configure it. Am I supposed to modify httpd.conf file? I've tried to modified many values but still not able to work out on this issue. Quote Link to comment Share on other sites More sharing options...
trq Posted April 8, 2008 Share Posted April 8, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.