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. Link to comment https://forums.phpfreaks.com/topic/99985-how-to-establish-website-with-given-website-domain/ 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. Link to comment https://forums.phpfreaks.com/topic/99985-how-to-establish-website-with-given-website-domain/#findComment-511313 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. Link to comment https://forums.phpfreaks.com/topic/99985-how-to-establish-website-with-given-website-domain/#findComment-512219 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. Link to comment https://forums.phpfreaks.com/topic/99985-how-to-establish-website-with-given-website-domain/#findComment-512500 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.