Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 26th, 2003, 01:08 PM
brewhound brewhound is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 brewhound User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question IP Based Virtual Host - Apache 2.0.40

Hello,

I'm "trying" to build/learn/host my first web site, but I'm a little confused so here we go:


URL which you should see a modified Apache test page.
It's dir. is /var/www/html/



My IP Based Virtual Hosts:

URL which you should see a Gallery Test page .php
It's dir. is /var/www/html/brewhound/
When I type in 192.168.111.6 the page appears fine. Can you see anything?

URL which you should see the Apache test page.
It's dir. is /var/www/americanmicrobeers/
When I type in 192.168.111.7 I see the Apache test page not the modified one.
Only when I type in 192.168.111.7/index.html do I see the modified page?

I want to see the modified page when I type in 192.168.111.7 or when you type in URL ?


Any ideas?

Reply With Quote
  #2  
Old July 26th, 2003, 03:17 PM
Jonx Jonx is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Southern California
Posts: 3 Jonx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Jonx
The reason your able to see it as 192.168.xxx.xxx is because thats the internal IP on your LAN. I am guessing your using some sort of router/firewall. What you would have to do, if you want everyone to see is you have to find out the IP that you were assigned by your IP (WAN Address?). The easiest way to do this, is to go to URL

Once you know your IP Address, then you must use your router/firewall and redirect any request on port 80 to go to your machine, which is the one hosting the web page. If you have any questions on doing this... I just told you the process, its a bit hard to explain the exact procedures without knowing how you have everything set up... so good luck

Reply With Quote
  #3  
Old July 26th, 2003, 05:41 PM
brewhound brewhound is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 brewhound User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have WatchGuard's SOHO6 firewall w/ the ability to dynamically update my IP (dyndns.org). Maybe I can work through this in another way.

Is there a way or service that I can log in remotely, then from that computer (location) view my web page. The other option is wait to go to work and troubleshoot from there?

Reply With Quote
  #4  
Old August 2nd, 2003, 01:14 PM
nxrw33 nxrw33 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 2 nxrw33 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
brewhound maaan

here is edited copy of my setup but it is apache 1.xx (latest)


# </VirtualHost>

<VirtualHost 192.168.0.101>
ServerName URL
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/phpnuke/html/"
DirectoryIndex index.html index.htm index.php index.php3 index.php4 index.phtml index.shtml index.shtm
ErrorLog "logs/opensourceservers.com-error_log"
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
CustomLog logs/opensourceservers.com-access_log common
</VirtualHost>





<VirtualHost 192.168.0.101>
ServerName forums.opensourceservers.com
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/phpbb2/"
DirectoryIndex index.html index.htm index.php index.php3 index.php4 index.phtml index.shtml index.shtm
ErrorLog "logs/test.opensourceservers.com-error_log"
CustomLog logs/test.opensourceservers.com-access_log common
</VirtualHost>



<VirtualHost 192.168.0.101>
ServerName bookmarks.opensourceservers.com
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/bookmark4u/"
DirectoryIndex index.html index.htm index.php index.php3 index.php4 index.phtml index.shtml index.shtm
ErrorLog "logs/opensourceservers.com-error_log"
CustomLog logs/opensourceservers.com-access_log common
</VirtualHost>



<VirtualHost 192.168.0.101>
ServerName scripts.opensourceservers.com
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/phpdig/"
DirectoryIndex index.html index.htm index.php index.php3 index.php4 index.phtml index.shtml index.shtm
ErrorLog "logs/opensourceservers.com-error_log"
CustomLog logs/opensourceservers.com-access_log common
</VirtualHost>



<VirtualHost 192.168.0.101>
ServerName localhost
DocumentRoot "C:/Program Files/Apache Group/Apache"
ErrorLog "logs/opensourceservers.com-error_log"
CustomLog logs/opensourceservers.com-access_log common
</VirtualHost>



<VirtualHost 192.168.0.101>
ServerName opensourceservers.com
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/index1/"
DirectoryIndex index.html index.htm index.php index.php3 index.php4 index.phtml index.shtml index.shtm
ErrorLog "logs/opensourceservers.com-error_log"
CustomLog logs/opensourceservers.com-access_log common
</VirtualHost>




<VirtualHost 192.168.0.101>
ServerName geeklog.opensourceservers.com
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/geeklog-1.3.8/"
DirectoryIndex index.html index.htm index.php index.php3 index.php4 index.phtml index.shtml index.shtm
ErrorLog "logs/opensourceservers.com-error_log"
CustomLog logs/opensourceservers.com-access_log common
</VirtualHost>




<VirtualHost 192.168.0.101>
ServerName realty.opensourceservers.com
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/openrealty/"
DirectoryIndex index.html index.htm index.php index.php3 index.php4 index.phtml index.shtml index.shtm
ErrorLog "logs/opensourceservers.com-error_log"
CustomLog logs/opensourceservers.com-access_log common
</VirtualHost>




<VirtualHost 192.168.0.101>
ServerName realty2.opensourceservers.com
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/open-realty/"
DirectoryIndex index.html index.htm index.php index.php3 index.php4 index.phtml index.shtml index.shtm
ErrorLog "logs/opensourceservers.com-error_log"
CustomLog logs/opensourceservers.com-access_log common
</VirtualHost>



hopefully this will wordwrap and all correctly, i use a router and dyn ips you just assign a redirect and fwd the port to another internal port it can get redundant, if in doubt just start to ping, remember to modify the windows host file that reflects dns info, you should be able to access locally on spec port before dns starts to fwd .

Reply With Quote
  #5  
Old April 18th, 2005, 03:39 AM
andreshs1 andreshs1 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 2 andreshs1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 48 sec
Reputation Power: 0
Hi, I am also a newby with apache and web servers,
I installed apache on a Windows XP, and I can access everything from my lan, but I cant see the web pages from outside. I enabled the dmz on my firewall to the machine running apache, therefore I reckon that any request with my wan ip address should be redirect to that machine, but IT DOESN'T WORKS

do I need to change anything in the apache config file, like in the example provided by nxrw33??


any help will be extremely appreciated.

Reply With Quote
  #6  
Old July 15th, 2005, 09:13 AM
TrashOverride TrashOverride is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Bulgaria
Posts: 10 TrashOverride User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 50 m 49 sec
Reputation Power: 0
Send a message via ICQ to TrashOverride
did u tell winXP config that u'll be using ur computer as web HTTP server?
Network Connection.... Advanced setting/in the security area/.... Web server (HTTP)
open ur LAN /WAN/ configuration for the firewall->advanced /settings/ check where ir says Web Server /HTTP/

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > IP Based Virtual Host - Apache 2.0.40


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT