Sie sind auf Seite 1von 7

Create Your Own HTTP Server

Share ko lang ang natutunan ko lately guys 1. You must have: Broadband internet connection always on Windows on your computer 2. Create a folder on your disc , in this example I created a folder on E:\my server 3. Download apache_2.2.10-win32-x86-no_ssl.msi (http://httpd.apache.org/download.cgi) and install it, set parameters (for localhost type something like a myserver.com (doesnt really matter), also type your email address in field Administrator@ Email Address) as shown below, choose where you want to install it.

4.When you install Apache , go to directory where you installed it (p.e. C:\Program Files\Apache Software Foundation\Apache2.2\conf) , here you will find a httpd file. Open that file with notepad.

After this will appear notepad with long and complicated code, dont worry, you must change just 3 things. 5. In notepad file find #DocumentRoot C:/Program Files/Apache Group/Apache2/htdocsand replace with #DocumentRoot E:\my server. Also find #<Directory C:/Program Files/Apache Group/Apache2/htdocs and replace with <Directory E:\my server. E:\my server is folder where you put files which will appear on your server. In this example I created that folder on local disc E:. You can create your folder in any other place, but then type that path here. Find #AllowOverride None and change to AllowOverride All.

After this, save file like httpd.conf.

6. Type in web addresses http://localhost/ or your IP Address, you should see something like this

Every files you put in folder , which we created in step 2 , will be shown on http://localhost/ 7. If you want access own server from other computers. You must forward a port in the router were using. The port we need to forward is port number 80. Why? Because by default its the port used for HTTP. Port forwarding actually means opening a tunnel through the router so that the router wouldnt reject the connections that are trying to connect to it. How to port-forward? With every router its different. Here are the instructions for every one of them. You must also turn off you firewall. That is all. Enjoy your home server. If you have questions, post them in the comments area. Note: Creating home server is risky,when you open port, there is a possibility to have someone a breach in your computer .Before you start, make sure your computer has all the latest patches and security updates, and that youve done a thorough spyware and virus scan. This tutorial is only for advanced users.

http://www.symbianize.com/showthread.php?t=651376

Das könnte Ihnen auch gefallen