From: <php...@li...> - 2006-03-29 15:53:13
|
I have this bridge up and running, http://php-java-bridge.sourceforge.net/ My problem is I can only have it serve up PHP pages from one directory under TOMCAT(myPHPapp). I want to be able to add other PHP apps in other directories I deploy to Tomcat. My config is Apache 2.0.44/Tomcat 5.5 with the bridge. In my HTTP.CONF I have the following Alias to point to the directory that has my PHP app, <VirtualHost *:80> ServerAdmin pr...@xx... ServerAlias xxyxyx.org *.xxyxyx.org DocumentRoot /usr/opt/tomcat/webapps/xxyxyx Alias / /usr/opt/tomcat/webapps/myPHPapp/ </VirtualHost> Jim |
From: <php...@li...> - 2006-03-31 15:40:20
|
Hi, > DocumentRoot /usr/opt/tomcat/webapps/xxyxyx isn't it possible to set the DocumentRoot to /usr/opt/tomcat/webapps so that the other apps become visible to the HTTP server? For example: DocumentRoot "/usr/opt/tomcat/webapps" <Directory "/usr/opt/tomcat/webapps/webapps"> Another option would be to keep the tomcat webapps and the http server htdocs directory separate and to symlink the individual apps from /usr/opt/tomcat/webapps/appX to /var/www/html/appX. For example: ln -s /usr/opt/tomcat/webapps/app1 /var/www/html/ ln -s /usr/opt/tomcat/webapps/app2 /var/www/html/ Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-31 18:53:59
|
>From: php...@li... >Reply-To: php...@li... >To: php...@li... >Subject: RE: [Php-java-bridge-users] Deploying Multiple PHP apps on >Apache/Tomcat >Date: Fri, 31 Mar 2006 17:40:07 +0200 (CEST) > >Hi, > > > DocumentRoot /usr/opt/tomcat/webapps/xxyxyx > >isn't it possible to set the DocumentRoot to >/usr/opt/tomcat/webapps so that the other apps become >visible to the HTTP server? For example: I tried this and when I do www.xxyxyx.com/MyPHPApp/index.php, and it can't find it. > >DocumentRoot "/usr/opt/tomcat/webapps" ><Directory "/usr/opt/tomcat/webapps/webapps"> > >Another option would be to keep the tomcat webapps and >the http server htdocs directory separate and to >symlink the individual apps from >/usr/opt/tomcat/webapps/appX to /var/www/html/appX. >For example: > >ln -s /usr/opt/tomcat/webapps/app1 /var/www/html/ >ln -s /usr/opt/tomcat/webapps/app2 /var/www/html/ I couldn't get these to work either. I did get it to work by adding the Alias to a different virtual host, which is ok for now becaue I use javascript to open another window. Alias / /usr/opt/tomcat/webapps/phpBB2/ Jim > > >Regards, >Jost Boekemeier > > > > > > > >___________________________________________________________ >Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live >webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2006-04-02 19:31:46
|
Hi, > >ln -s /usr/opt/tomcat/webapps/app2 /var/www/html/ > I couldn't get these to work either. > > I did get it to work by adding the Alias to a > different virtual host, which > is ok for now becaue I use javascript to open > another window. > > Alias / /usr/opt/tomcat/webapps/phpBB2/ I'm not familier with the virtual hosts settings and aliases, but as I understood it, one must add a <Directory> entry for the DocumentRoot. I have tested this with 3.0.8rc3: ------(apache frontend, tomcat backend setting)--- the following example is for Apache 2. Edit e.g. /etc/httpd/conf/httpd.conf as follows: # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # -DocumentRoot "/var/www/html" +DocumentRoot "/var/lib/tomcat5/webapps" # # Each directory to which Apache has access can be configured with respect # # This should be changed to whatever you set DocumentRoot to. # -<Directory "/var/www/html"> +<Directory "/var/lib/tomcat5/webapps"> Edit the php.ini or add a file php-tomcat.ini to the directory which contains the php module descriptions (usually /etc/php.d/), so that it contains: [java] java.hosts = 127.0.0.1:8080 java.servlet = On -------end proposed FAQ entry----------------------- But I am not sure if that works in a virtual host environment. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |