...

View Full Version : Apache Question



PenguinJr
02-09-2004, 02:02 AM
Hi guys,

I'm a newbie at apache here.

I've got my apache to work on the localhost, now i'd like to make my standalone computer available to the public internet.

How do I do that? my friend doesnt use apache and his one is available to the public internet. And what I mean by that is that people can access his web server (that is on his computer) just by using his IP:port.

Thank you in advance for the help.

Regards,

Spookster
02-09-2004, 06:40 AM
You need to configure a directory to be accessible to the public in the apache config file. I don't recall if the default config sets one up or not although it would make sense that it did.

PenguinJr
02-09-2004, 12:01 PM
Arent they the same folder for both localhost and public internet?

I got it working for localhost already, just need to get public internet going.

And also, do you mind being more specific as to which section of the config file do i need to edit etc.

Thank.

Spookster
02-09-2004, 05:52 PM
Originally posted by PenguinJr
Arent they the same folder for both localhost and public internet?

I got it working for localhost already, just need to get public internet going.

And also, do you mind being more specific as to which section of the config file do i need to edit etc.

Thank.

Not necessarily. If you downloaded Apache from their website and installed it using the default http.conf file which is the config file you will be working with then you should have the document root set to allow public access. If you downloaded some ready made development package that included Apache then the author of that package may have removed that setting or modified it in some way.

You should see something along these lines:




<Directory "C:/Program Files/Apache Group/Apache/htdocs">

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews

#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>



without all the comments it looks like so:




<Directory "F:/Program Files/Apache Group/Apache/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>



You will likely have more than one that looks like that. This is how you can define certain features for specific directories.

PenguinJr
02-10-2004, 01:13 AM
Hm...

I do have all that...

but my localserver is still not available to the public internet.

My friends cant access me by my http://myIP:80

Only i can access http://myIP:80 or http://localhost

This is weird and annoying >.<

Spookster
02-10-2004, 01:15 AM
Do you have a firewall running?

PenguinJr
02-10-2004, 12:12 PM
Nope.. never liked firewall...

Spookster
02-10-2004, 02:58 PM
Well firewalls are a good thing. This sounds suspiciously like a firewall problem. Are you sure there are no firewalls running? Are you running WinXP? It has a built in firewall program that may be running.

PenguinJr
02-10-2004, 11:21 PM
yup i'm 100% sure there is no firewall running.

If you mean the default winxp firewall in the internet/network setting, i turned it off.

Hmm...

Are you sure thats all I need to have my computer available to the public internet?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum