How to set up a home server on Windows or *nix (Updated)
26 posts
• Page 3 of 3 • 1, 2, 3
I set up a server using Apache and the instructions from here:
http://www.dslwebserver.com/main/main.html
I used Dydns and Zone edit.
It ain't much, but it's here:
www.hughvandervoort.com
"He uses silence like you use words."
Reginald Hill, from the Dalziel and Pascoe series
Reginald Hill, from the Dalziel and Pascoe series
I like to use WAMP ( Windows Apache Mysql PHP ). it doesn't have to may addons, but it works for starting a beginner site. i host 5 subdomains from it, using virtual hosts in apache's http.conf file. using seperate ports and folders for each.
After Installing WAMP I go into the http.conf file and move everything needed to host a VirtualHost to the end of the file.
so one of my VirtualHosts look like this:
now the first "www" folder is set as the default directory, so you have to change this. I chage it to a sub directory of that very folder so that i may have each foldewr set up as its own site. connected via its own port and subdomain.
I also make it so i can use non default names to open the index of a folder so i have made the DirectoryIndex look like this:
this allows for; portal.php, index.php, index.php3, index.html, index.htm, main.php, and main.php3 to be used in opening a folders contents, jus tas if it were the "index" file.
Now my last step is to forward port 9090 in both my routers( I have a westell from verizon, and a linksys i bought ) and in windows firewall, then go to no-ip.org and select the Host Type as "port 80 redirect" and select port 9090.
update ( or restart ) No-IP DUC so it picks up your new subdomain, and bobs your uncle.
so now when a user goes to http://mysite.no-ip.org they get send to my IP on port 9090 instead of port 80.
now i seem to have an issue viewing my subdomain from with in my network, so i am restricked to viewing it as my machine name then the port like this:
After Installing WAMP I go into the http.conf file and move everything needed to host a VirtualHost to the end of the file.
so one of my VirtualHosts look like this:
- Code: Select all
NameVirtualHost *:9090
Listen 9090
<VirtualHost>
ServerAdmin email addy
DocumentRoot D:/sirussofts/www/www2
ServerName localhost
<Directory>
Options All
AllowOverride none
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
now the first "www" folder is set as the default directory, so you have to change this. I chage it to a sub directory of that very folder so that i may have each foldewr set up as its own site. connected via its own port and subdomain.
I also make it so i can use non default names to open the index of a folder so i have made the DirectoryIndex look like this:
- Code: Select all
DirectoryIndex portal.php index.php index.php3 index.html index.htm main.php main.php3
this allows for; portal.php, index.php, index.php3, index.html, index.htm, main.php, and main.php3 to be used in opening a folders contents, jus tas if it were the "index" file.
Now my last step is to forward port 9090 in both my routers( I have a westell from verizon, and a linksys i bought ) and in windows firewall, then go to no-ip.org and select the Host Type as "port 80 redirect" and select port 9090.
update ( or restart ) No-IP DUC so it picks up your new subdomain, and bobs your uncle.
so now when a user goes to http://mysite.no-ip.org they get send to my IP on port 9090 instead of port 80.
now i seem to have an issue viewing my subdomain from with in my network, so i am restricked to viewing it as my machine name then the port like this:
- Code: Select all
http://machinename:9090/
I almost forgot
in your http.conf you'll find this line
your gonna need to change that line to
otherwise your vitrual servers will NOT work.
I just remembered this after spending about 4 hours troubleshooting my apache2 http.conf file.
in your http.conf you'll find this line
- Code: Select all
ServerName localhost:80
your gonna need to change that line to
- Code: Select all
ServerName localhost
otherwise your vitrual servers will NOT work.
I just remembered this after spending about 4 hours troubleshooting my apache2 http.conf file.
26 posts
• Page 3 of 3 • 1, 2, 3
Return to HTML, CSS, and Scripts
Who is online
Users browsing this forum: No registered users and 7 guests