Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 20th, 2002, 06:59 PM
pentium5 pentium5 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: entlegen
Posts: 442 pentium5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
when True IP is applied , what is need to change in my httpd.conf when ....

when True IP is applied , what is need to change in my httpd.conf when my current setting( IP-based and behind a home-based router and in the long run, the my machine will apply a real IP address) in httpd.conf is some what like this.....

<VirtualHost 192.168.1.199:80>
DocumentRoot /var/www/html/redhat7.1/bookstore
ServerName bookstore.myserver.com
ServerPath /book
ErrorLog logs/book-error.log
</VirtualHost>
.....
....


I supposed to do



<VirtualHost true-ip-here:80>
DocumentRoot /var/www/html/redhat7.1/bookstore
ServerName bookstore.myserver.com
ServerPath /book
ErrorLog logs/book-error.log
</VirtualHost>


can we do

$true-ip-here="real IP"; ( very much like php form)
<VirtualHost true-ip-here:80>
DocumentRoot /var/www/html/redhat7.1/bookstore
ServerName bookstore.myserver.com
ServerPath /book
ErrorLog logs/book-error.log
</VirtualHost>


what other parameters need to change too????
__________________
regards,

wish to use AT 89c51 single chip computer to do remote sensing and send the data back from woods to office via nokie 3330 and internet. HOW?
first I must revise C program thro' example, what's next?

Last edited by pentium5 : February 20th, 2002 at 07:02 PM.

Reply With Quote
  #2  
Old February 21st, 2002, 01:18 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Just change NameVirtualHost to * and <VirtualHost 192.168.1.199:80> to <VirtualHost *>. BTW, you don't need to specify port 80 explicitly.

Reply With Quote
  #3  
Old February 22nd, 2002, 12:18 AM
pentium5 pentium5 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: entlegen
Posts: 442 pentium5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
DO u mean these two will work ??


<VirtualHost *:80>
DocumentRoot /var/www/html/redhat7.1/bookstore
ServerName bookstore.myserver.com
ServerPath /book
ErrorLog logs/book-error.log
</VirtualHost>


or

<VirtualHost *>
DocumentRoot /var/www/html/redhat7.1/bookstore
ServerName bookstore.myserver.com
ServerPath /book
ErrorLog logs/book-error.log
</VirtualHost>
it will apply the "REAL- IP address"


I have not and I am still hanging with closing ports and limited people for tthesake of security , I do wish to discuss openly with security issue.

around.http://forums.devshed.com/showthrea...7580#post127580


please help me!!!!!!

Last edited by pentium5 : February 22nd, 2002 at 12:21 AM.

Reply With Quote
  #4  
Old February 22nd, 2002, 12:29 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> DO u mean these two will work ??

Yes. But you should still remove the :80 like I said it's not needed for port 80. Why you need to specify ServerPath?

>> it will apply the "REAL- IP address"

Actually to all available IPs (including 127.0.0.1, 192.168.0.1 and your static/dynamic IP). You should set * when you are on dynamic.

Reply With Quote
  #5  
Old February 22nd, 2002, 02:40 AM
pentium5 pentium5 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: entlegen
Posts: 442 pentium5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
wait a minute in dynamic ip environment- RH 7.1 , I tried your method and each time I restarted the httpd.


<VirtualHost *:80>
DocumentRoot /var/www/html/redhat7.1/bookstore
ServerName bookstore.myserver.com
ServerPath /book
ErrorLog logs/book-error.log
</VirtualHost>
and

<VirtualHost _default_:80>
DocumentRoot /var/www/html/redhat7.1/bookstore
ServerName bookstore.myserver.com
ServerPath /book
ErrorLog logs/book-error.log
</VirtualHost>

It points to my default sub-domain ( not point to my bookstore.myserver.com.

It does NOT seem to align what u said.

the original setting is like this....

<VirtualHost 192.168.1.199:80>
DocumentRoot /var/www/html/redhat7.1/bookstore
ServerName bookstore.myserver.com
ServerPath /book
ErrorLog logs/book-error.log
</VirtualHost>

Reply With Quote
  #6  
Old February 22nd, 2002, 03:22 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Because you are using identical docroot. If not, show us what you do have now.

Reply With Quote
  #7  
Old February 22nd, 2002, 05:47 AM
pentium5 pentium5 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: entlegen
Posts: 442 pentium5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
they do NOT have identical doc-directory.
the <virtual stmt> are the two approach ( combinations) that I have tried.

I prefer u can help me to solve blocking "all the port except ...." I have read the apache text myself.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > when True IP is applied , what is need to change in my httpd.conf when ....


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