Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > Apache Help

Apache Help Post any question relating to Apache here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-01-04, 04:54 PM
Junior Member
 
Join Date: Oct 2006
Posts: 2
glenelkins is on a distinguished road
Default Completely Stuck

Hi

Ok im pulling my hair out over apache. I have installed apache on my Windows Server via remote desktop. Works fine for localhost. Now how do I get a domain to work ? Say the domain is "test.com" i setup in apache:

Listen *:80

ServerName localhost

NameVirtualHost test.com:80

<VirtualHost test.com:80>
DocumentRoot "C:/WebServer/www
ServerName test.com
ServerAlias test.com www.test.com
</VirtualHost>

I edit the HOSTS file and put:

127.0.0.1 test.com www.test.com

Say the servers ips are:

209.21.222.145
209.21.222.146

I goto the domain and create a name server host record like

ns1.test.com 209.21.222.145
ns2.test.com 209.21.222.146

Then change test.com DNS accordingly.

The website test.com comes up fine if i work on the servers network. But outside of the network the domain cannot find the page?

Help please! lol
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:51 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.