A Digital Age Deserves A Digital Leader

How to set up a home server on Windows or *nix (Updated)

Postby Hughv » Sat Jun 24, 2006 12:36 pm

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
PRO Level 3
Posts: 75
Joined: Sat Jun 24, 2006 12:15 pm
Location: Annapolis, MD

Postby tWeaKmoD » Sun Jul 09, 2006 11:08 pm

I set this up and it was working great..until I restarted my computer. Now when I try to open my page (using 192.168.0.4 - how it was working earlier) it is asking me for a username and password. I don't think I made any changes. How can I get this to go back to how it was?
PROfessional Member
User avatar
Posts: 3813
Joined: Tue Mar 16, 2004 4:39 am
Location: USA

Postby gries818 » Tue Aug 08, 2006 9:55 pm

I found its actually easier to setup Apache and PHP seperatly. I could never get XAMPP to work :no
Image

Mac OS 10.6.7 - Personal
Ubuntu Server 11.04 - Server
Software Development
User avatar
Posts: 3991
Joined: Wed Jul 07, 2004 6:28 pm

Postby adamdon89 » Tue Sep 05, 2006 5:51 pm

I think I've got this working but when I go to the URL of my sub domain it goes to the configuration utility of my SpeedTouch 576 router, any help?
PRO Level 2
Posts: 21
Joined: Thu Aug 04, 2005 9:41 pm
Location: UK

Postby c0ldfyr3 » Mon Oct 09, 2006 7:30 am

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:
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/
Image
PRO Level 15
User avatar
Posts: 1346
Joined: Sun May 02, 2004 8:49 pm
Location: 127.0.0.1

Postby c0ldfyr3 » Tue Oct 24, 2006 2:39 pm

I almost forgot

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. :confused :embarrassed:
Image
PRO Level 15
User avatar
Posts: 1346
Joined: Sun May 02, 2004 8:49 pm
Location: 127.0.0.1

Previous

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 7 guests

cron
cron