Quantcast

Forums | MacLife

You are not logged in.

#1 2003-07-25 12:58 pm

key24
Member
Registered: 2002-04-05
Posts: 64

How to host a website using apache?

So I have been trying to host a website from my computer (imac 400) running 10.2.6, we have an original ABS, i have set up port forewarding to foreward port 80 to my computer. But whenever someone tries to connect, it says server is not there. So my guess is that our isp blocks port 80, so how can i change the port Apache uses? ANy help is appreciated. Thanks
-chris

Offline

 

#2 2003-07-25 1:37 pm

SWFan
Member
From: Kansas City
Registered: 2002-02-02
Posts: 1473
Website

Re: How to host a website using apache?

How are you trying to load the website, via IP address or a virtual domain name?  If its via a virtual domain name, is it registered and pointed to the correct IP address?  If you're on a residential broadband connection, how are you handling the dynamic IP aspect?


Captain Kirk: "Once again we've saved civilization as we know it."
Dr. McCoy: "And the good news is they're not going to prosecute."

Offline

 

#3 2003-07-25 1:45 pm

key24
Member
Registered: 2002-04-05
Posts: 64

Re: How to host a website using apache?

I've tried to connect to it from outside the network using our ip address, which doesn't change if that's what the second question was. And it is residential BTW, that's why I think they are blocking ports.
Thanks for the reply
-Chris

Offline

 

#4 2003-07-25 1:46 pm

macfreak880
Member
Registered: 2002-10-14
Posts: 950

Re: How to host a website using apache?

I assume you mean "using", not suing, apache.  I don't know how you can sue a computer program...

Are you trying to access the internet through a router or are you connected strait to your modem?


"Intel Inside"  Not a marketing gimmick, but a warning label.

Offline

 

#5 2003-07-25 2:54 pm

MacAddict4Life
Member
From: Castro Valley
Registered: 2000-04-24
Posts: 2797
Website

Re: How to host a website using apache?

Perhaps try setting up a DMZ host? I think this is what I had to do on my home LAN, set up a DMZ host pointed to the hosting computer.


http://www.ernestphillips.com/
"Of all the habits which lead to political prosperity, religion and morality are indespensible supports." -George Washington

Offline

 

#6 2003-07-25 3:31 pm

key24
Member
Registered: 2002-04-05
Posts: 64

Re: How to host a website using apache?

Ya macfreak I meant using, not suing 

But anyway we have an original airport basestation that we use as our router, and macaddict4life what's a DMZ host, I'm a newb at this stuff so if you could explain yourself that would be helpful. Thanks
-Chris

Offline

 

#7 2003-07-25 3:37 pm

MacAddict4Life
Member
From: Castro Valley
Registered: 2000-04-24
Posts: 2797
Website

Re: How to host a website using apache?

DMZ (demilitarized zone) host means all ports are forwarded to that host. Essentially it lets your internet IP point to a single, specific computer on your network. I do not know how to do it with Airport though (I use Linksys routers).


http://www.ernestphillips.com/
"Of all the habits which lead to political prosperity, religion and morality are indespensible supports." -George Washington

Offline

 

#8 2003-07-25 4:58 pm

DJ Hyp3rion
Member
From: On Halo. (getting TKed by Rand
Registered: 2003-07-07
Posts: 430

Re: How to host a website using apache?

You can change the port that Apache uses in it's config files.

I think it's "httpd.conf".

The line itself, I don't remember, but it's something like "listeningport 80" or something, and you can change it to whatever. From 1-65536, I believe.
Anyone, feel free to correct me on this.  confused



Mac for Productivity
Linux for Development
Palm for Mobility
Windows for Solitaire

iBook G4 800 MHz/384MB/30GB/R9200M/32 VRAM

Offline

 

#9 2003-07-25 5:36 pm

sevoneone
HEADSHOT.
From: San Francisco
Registered: 2000-02-12
Posts: 1927

Re: How to host a website using apache?

Use the terminal to open/edit the config file.  Don't worry there is a backup of the config file already in the httpd folder (httpd.conf.bak)

In the terminal type (without quotes): "cd /etc/httpd"
Then type "sudo pico httpd.conf"

Scroll through the file until you find Section 2: Main Server Configuration.   About 20-25 lines down from there is a line that should say "Port 80"
Change it to say "Port 82" (or any number you like) press Ctrl+O, then Enter. Ctrl+X, then quit the terminal and start personal web sharing from the sharing CP. To access your website users will have to enter the port manually. To do this after your ip add a colon and the port number of you chose earlier.   For example:  http://192.378.1.999:82  <- i know this is not a possible IP, so dot yell at me, it's just an example.

Good Luck.


"...by an expert?"
"Worse, a committee of experts."

Offline

 

#10 2003-07-26 1:00 am

key24
Member
Registered: 2002-04-05
Posts: 64

Re: How to host a website using apache?

Nope I didn't know you could edit the subject that way, thanks for telling me, I learn something new everyday.

I tried that sevenofeleven not sure if it worked yet, but thanks on the info, I guess I learned two things today, maybe I should give myself a gold star. Thanks for all the replies
-Chris

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson