VirtualHosts not accessible from internet

sfstreet

Registered
Am running Leopard and all setup and good on localhost.

Big problem is I cant make it work outside of the LAN, meaning, users on the internet can not go and access my Apache web server.

I have a FiOS business and 100% not blocked. Router all setup and good running 5MB up/ 5MB down.

Am running under /extra so the httpd-vhosts.conf is uncommented.
LoadModule is also uncommented already and I am actually working on Localhost already.

httpd.conf
------------

LoadModule php5_module libexec/apache2/libphp5.so

# Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf


httpd-vhosts.conf
-----------------------

Listen 80
NameVirtualHost *:80>

<VirtualHost *:80>
ServerName meetafreelancer.com
ServerAlias www.meetafreelancer.com
ServerAdmin meetafreelancer@gmail.com
DocumentRoot /Library/WebServer/meetafreelancer
ErrorLog /Library/WebServer/meetafreelancer/error.log
<Directory "/Library/WebServer/meetafreelancer">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


What possibly wrong am I doing?
 
Last edited:
I also tried it this way and still dont get connectivity from outside. My router is reporting port 80 open and well. But it seems someting is wrong with my setup on the mac.

Listen 80
NameVirtualHost meetafreelancer.com

<VirtualHost meetafreelancer.com>
ServerName www.meetafreelancer.com
ServerAlias meetafreelancer.com
ServerAdmin meetafreelancer@gmail.com
DocumentRoot /Library/WebServer/meetafreelancer
ErrorLog /Library/WebServer/meetafreelancer/error.log
<Directory "/Library/WebServer/meetafreelancer">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
 
Is this running on Leopard Server or Client? Do you have the external DNS setup? What happens when you use the external IP address outside of your local network? Do you get a default page, but just not your configured website or an unreachable host notice?

Do you have anything setup to route traffic that's received on port 80 to the IP of the machine that's hosting the web service?

Michael
 
Hello and thank you so much for the reply.
-Running on Leopard 5.1 client
-External DNS running from no-ip.com
-From the inside, I have a hosts setup for local access and its fine.
-I have another DSL link which i use to test, and from outside, I am getting timed out and just a broken link or an unreachable host notice?
- My router is setup to port forward to port 80 to my Mac static IP 192.168.1.2. Port 80 is wide open since I have a business DSL 5u/2d mb link for business.

Just dying to get it to work.
Thanks,
 
Is there anything I need to do on the MAC side except on the Sharing WEb to turn it on, apache restarted. I tried also removed the firewall from the Security so I can see if it will work "Allow all incoming connections"
Is ther any local DNS setup to do on the MAC. The only one I know is on the Network>Advanced>DSN Servers> 192.168.1.1 (My router).
Somehow, it seems it does not get resolved.
thanks,
 
Last edited:
Back
Top