Fedora Linux Support Community & Resources Center
  #1  
Old 12th October 2008, 08:24 PM
slimx3m Offline
Registered User
 
Join Date: Feb 2008
Posts: 26
DHCP and Accessing my site

i just started my dhcp server using fedora 9 and it works great, but whenever i try to access my site it just gives me a network connection error. but an outsider is able to access my server remotely. is there any thing that i need to setup in specific on my dhcp that i will be able to access my site locally?

thanks in advance
Reply With Quote
  #2  
Old 12th October 2008, 09:57 PM
briantan Offline
Registered User
 
Join Date: Jun 2008
Posts: 715
How is your server connected? Directly to internet or via a router with port forwarding?
Reply With Quote
  #3  
Old 12th October 2008, 10:12 PM
slimx3m Offline
Registered User
 
Join Date: Feb 2008
Posts: 26
my server is connected via a router with port forwarding.

so my network connection goes... router=>server=>clients pc

makes sense?
Reply With Quote
  #4  
Old 12th October 2008, 10:23 PM
slimx3m Offline
Registered User
 
Join Date: Feb 2008
Posts: 26
my server is connected via a router with port forwarding.

so my network connection goes... router=>server=>clients pc

makes sense?
Reply With Quote
  #5  
Old 13th October 2008, 03:36 AM
briantan Offline
Registered User
 
Join Date: Jun 2008
Posts: 715
It seems that local pc cannot access website external ip address via router port forwarding.

What you can do is add ServerAlias to httpd.conf like this:
Code:
<VirtualHost *:80>
ServerName www.mydomain.com
ServerAlias www1.mydomain.com
.....
Assuming that your webserver ip address is 192.168.1.2, add this line to /etc/hosts of Linux pc and/or C:\WINDOWS\system32\etc\hosts

Code:
192.168.1.2    www1.mydomain.com
Edit: Should be C:\WINDOWS\system32\drivers\etc\hosts

Last edited by briantan; 13th October 2008 at 03:55 AM.
Reply With Quote
  #6  
Old 13th October 2008, 06:44 AM
slimx3m Offline
Registered User
 
Join Date: Feb 2008
Posts: 26
briantan,

thank you for your help but that didn't work out. i'll check more infoamtion about this and keep you updated.
Reply With Quote
  #7  
Old 13th October 2008, 01:41 PM
briantan Offline
Registered User
 
Join Date: Jun 2008
Posts: 715
With ServerAlias, you access your website via www1.mydomain.com.
Reply With Quote
  #8  
Old 13th October 2008, 02:49 PM
slimx3m Offline
Registered User
 
Join Date: Feb 2008
Posts: 26
Quote:
Originally Posted by briantan View Post
With ServerAlias, you access your website via www1.mydomain.com.
briantan,

i know i should be able to and i've done that before. but whenever i try to access the site with "ServiceAlias" i get a
Code:
"Address Not Found"
"Firefox can't find the server at www1.mydomain.com."
and i have that ServiceAlias added to my hosts. i even reset my server network manager and restarted apache to see if it works.

NOTE: the www1.mydomain.com doesn't work either internally or remotely. i even try it on the server and it just takes forever trying to connect to the www1.

are there any other thoughts on what would it be?

thanks in advance
Reply With Quote
  #9  
Old 13th October 2008, 03:04 PM
briantan Offline
Registered User
 
Join Date: Jun 2008
Posts: 715
Should be "ServerAlias" not "ServiceAlias" in httpd.conf.

"192.168.1.2 www1.mydomain.com" is to be added to hosts file of internal client PCs that runs browser. Try to run "ping www1.mydomain.com" and "ping 192.168.1.2" after adding to verify connectivity. (change 192.168.1.2 to server's ip)

Add it to server's /etc/hosts if you're running browser at server.

Alternatively, you can try access website by IP address.
Reply With Quote
  #10  
Old 14th October 2008, 03:39 AM
slimx3m Offline
Registered User
 
Join Date: Feb 2008
Posts: 26
no success. i can not either ping www1.mydomain.com or access it locally. i think i found the problem. i have my local and external host the same, so whenever i try to access my server locally it takes me to the internet. i can ping it with the ip address, but if i put the ip address on the browser it takes me to the net and it won't connect.

i'll make some modifications in my server, any other thought are welcome thnx for your help so far
Reply With Quote
  #11  
Old 16th October 2008, 12:14 AM
slimx3m Offline
Registered User
 
Join Date: Feb 2008
Posts: 26
after my changes still no success
Reply With Quote
Reply

Tags
accessing, dhcp, site

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Site to Site VPN, Will the same Natted Ip work for the Second site as well ? bally090 Servers & Networking 0 16th December 2008 08:15 AM
Accessing Windows shares on DHCP-based computers. The Warlock Servers & Networking 5 24th July 2005 04:07 PM


Current GMT-time: 20:56 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat