|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
Just change NameVirtualHost to * and <VirtualHost 192.168.1.199:80> to <VirtualHost *>. BTW, you don't need to specify port 80 explicitly.
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
>> 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. |
|
#5
|
|||
|
|||
|
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> |
|
#6
|
|||
|
|||
|
Because you are using identical docroot. If not, show us what you do have now.
|
|
#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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > when True IP is applied , what is need to change in my httpd.conf when .... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|