Apache can not combind with tomcat with dynamic mass virtualhost?
Submitted by corel123 on Thu, 31/03/2005 - 13:52.
java
I can not get apache for Dynamich virtual host setting work perfectly while VirtualDocumentRoot work with tomcat;The problems should happen in two case:
1.Once I use VirtualDocumentHost as
VirtualDocumentHost %1.java.net
all the Directory access setting, for example, the Auth directory will be disabled by the VirtualDocumentHost set, what in the same Container with the VirtualDocumentHost command be, Now means that the WEB-INF files will be opened to the world.
2.or, I bar the VirtualDocumentHost command in the VirtualHost container like:
ServerName %1.java.net
LogFormat "%{Host}i %h %l %u %t %r %s %b" vcommon
CustomLog logs/access_log vcommon
VirtualDocumentRoot /home/www/%1/
pay attention to the ServerName is dynamic but it is not funtional, the VirtualDocumentRoot will actually do not work at all, the apache regards it as the default virtualhost.
Obviously, no matter no forbidden for the confidential resource or, no work for virtual host dynamic setting will not match the requirement. How to handle the situation? please help once you have solution.
Now that I have no choice, so far I want to provide the dynamic mass virtualhost by user register, I should have to provide in the other machine, which redirect back to this machine, however, it will complicated by remote call interface likewise corba do...
I do not know whether I should worth to do that.
1.Once I use VirtualDocumentHost as
VirtualDocumentHost %1.java.net
all the Directory access setting, for example, the Auth directory will be disabled by the VirtualDocumentHost set, what in the same Container with the VirtualDocumentHost command be, Now means that the WEB-INF files will be opened to the world.
2.or, I bar the VirtualDocumentHost command in the VirtualHost container like:
ServerName %1.java.net
LogFormat "%{Host}i %h %l %u %t %r %s %b" vcommon
CustomLog logs/access_log vcommon
VirtualDocumentRoot /home/www/%1/
pay attention to the ServerName is dynamic but it is not funtional, the VirtualDocumentRoot will actually do not work at all, the apache regards it as the default virtualhost.
Obviously, no matter no forbidden for the confidential resource or, no work for virtual host dynamic setting will not match the requirement. How to handle the situation? please help once you have solution.
Now that I have no choice, so far I want to provide the dynamic mass virtualhost by user register, I should have to provide in the other machine, which redirect back to this machine, however, it will complicated by remote call interface likewise corba do...
I do not know whether I should worth to do that.
