Using DNS2P with Windows and
Linux versions of the Apache web server |
Many DNS2P users want to run their own web server
with multiple web sites on their home server.
Using Microsoft IIS can be a big issue with
worms and viruses, and sometimes the DNS2P Windows
web server can't perform some of the advanced
tasks that Apache can. |
Since Apache is the world's leading web server,
we get plenty of inquiries about running the
Apache Web server on both Windows and Linux.
Apache 2.0 is a recent release of the world's
best web server, and due to many improvements,
we wanted to bring you a tutorial on configuring
the Apache server to run your domain(s). |
In this tutorial, we have the DNS2P Windows
software running on our server, and have added
the domains 1.dns2p.com, 2.dns2p.com, and 3.dns2p.com.
Once we get everything tested with these DNS2P
subdomains, we can purchase additional private
domains from DNS2P and add them into our server
later once everything is working. |
Our Linksys NAT router has a LAN address of 10.1.1.254 and the routers WAN IP address is
Dynamic, so it could change anytime. The first
thing we need to do is download and install
the Apache 2.0 server for Windows. |
Download Apache 2.0 for Windows here: |
http://www.apache.org/dist/httpd/binaries/win32/ |
Get the file named: apache_2.0.36-win32-x86-no_ssl.msi
* this is the latest working version without source for Win32, Newer versions may be avail here Documentation for Apache 2.0 is here: |
http://httpd.apache.org/docs-2.0/ |
Install the server by clicking on the MSI file.
Install the Apache server to the default path
of C:\Program Files\Apache Group as shown in
the shot below. |
The Server will ask your domain name and server
name, in our case, our first and primary domain
name is 1.dns2p.com, and our server name is
dubserver.1.dns2p.com (See Example below) |
Once the Server is installed you will see the
Apache server monitor in the System tray near
the clock as shown. The Apache Monitor icon
is to the far left, the feather with the play
button in the middle. When the server is stopped,
the symbol changes to a red stop button. |
|
Now that we have the Apache server running,
we want to stop the server, then edit the httpd.conf
file located in the C:\Program Files\Apache
Group\Apache2\conf directory. To Stop the server,
right click on the Apache Server monitor icon
as shown above, then click "OPEN APACHE
MONITOR" - and select the STOP button to
stop the server. (See screenshot of Apache Server
Monitor below) |
Make a backup of your httpd.conf file! Now,
once you make the backup, edit the httpd.conf
in Notepad for your name based virtual host
IP, Port and virtual host names. Open the httpd.conf
file located in the C:\Program Files\Apache
Group\Apache2\conf directory with a simple text
editor such as Notepad. (See an example of the
directory below, highlighted folders are the
2 folders mentioned here in this tutorial for
configuring and adding HTML content) |
|
Scroll down to the bottom of the httpd.conf
file and find the section with "NameVirtualHost"
as shown below for virtual hosts. By Default,
Name based virtual hosts are turned off and
we need to turn them on and add in our virtual
hosts, then restart the server. Apache loads
the .CONF file configuration every time the
server is started or restarted, so once we save
this file and restart, our changes should be
in-place. |
Web Server
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar