Re: Problem with Apache 2 and Apache Server
Vik Tara <[email protected]> Tue, 30 Nov 2010 12:38:26 +0000
| Newsgroups | gmane.comp.cms.lenya.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, > As Lenya work on tomcat, I think you have to set up an ajp connexion > between apache server and tomcat I would concur - we have had much better results using ajp. Regards Vik On 11/30/2010 12:13 PM, florent andré wrote: > Hi Yehya, > > As Lenya work on tomcat, I think you have to set up an ajp connexion > between apache server and tomcat (documentation here [1]). > > My apache configuration (just for the live proxiing) is > > <VirtualHost domain.com> > Servername domain.com > ServerAlias www.domain.com > > ServerAdmin webmaster@localhost > > # proxy close > ProxyRequests Off > # send the real hostname to tomcat > ProxyPreserveHost On > > <Proxy *> > Order deny,allow > Allow from all > </Proxy> > > <Location /> > ProxyPass ajp://localhost:8009/lenya/mypublication/live/ > ProxyPassReverse ajp://domain.com/ > </Location> > > </VirtualHost> > > I suggest you to start to configure something simple, try if it works, > and if yes add some features/configuration. It's more easy to detect a > miss-configuration with two lines than with 100 :). > > Please start a new thread for your upload problem, with the Lenya > version you use. > > HTH > > [1] : http://lenya.apache.org/docu20/tutorials/proxy/modproxyajp.html > > > On 11/30/2010 11:43 AM, Yehya Mohamad wrote: > >> Dear Vik, >> >> We have configured uploads to be allowed in the local.build.properties >> otherwise it would not work in http://host:8080/lenya/... >> >> Our Apache Configuration is as follows: >> >> <VirtualHost NNN.NNN.NNN.NNN:443> >> >> ServerName domainame.org:443 >> ServerAdmin admin@domainname,org >> >> # Document root points to the root of the Web application >> DocumentRoot /srv/www/htdocs >> >> # Permissions on document root >> <Directory /srv/www/htdocs> >> Options None >> AllowOverride None >> Order allow,deny >> Allow from all >> </Directory> >> >> # SSL Engine Switch: >> # Enable/Disable SSL for this virtual host. >> SSLEngine on >> # SSL Cipher Suite: >> SSLCipherSuite >> ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL >> # Server Certificate: >> SSLCertificateFile /etc/ssl/certs/domainname.org_cert.pem >> # Server Private Key: >> SSLCertificateKeyFile /etc/ssl/certs/domainname.org.key >> >> # Logging configuration >> ErrorLog /var/log/apache2/error_ssl-domainname.log >> CustomLog /var/log/apache2/access_ssl-domainname.log combined >> >> # Access to Lenya application >> ProxyPassReverseCookiePath /lenya / >> <Location /lenya/lenya> >> ProxyPass http://domainname.org:8080/lenya/lenya >> ProxyPassReverse http://domainname.org:8080/lenya/lenya >> # Open access >> Order allow,deny >> Allow from all >> </Location> >> <Location /lenya/menu> >> ProxyPass http://domainname.org:8080/lenya/menu >> ProxyPassReverse http://domainname.org:8080/lenya/menu >> # Open access >> Order allow,deny >> Allow from all >> </Location> >> <Location /lenya/modules> >> ProxyPass http://domainname.org:8080/lenya/modules >> ProxyPassReverse http://domainname.org:8080/lenya/modules >> # Open access >> Order allow,deny >> Allow from all >> </Location> >> <Location /archive> >> ProxyPass >> http://domainname.org:8080/lenya/domainname/archive >> ProxyPassReverse >> http://domainname.org:8080/lenya/domainname/archive >> # Open access >> Order allow,deny >> Allow from all >> </Location> >> <Location /trash> >> ProxyPass http://domainname.org:8080/lenya/domainname/trash >> ProxyPassReverse http://domainname.org:8080/lenya/domainname/trash >> # Open access >> Order allow,deny >> Allow from all >> </Location> >> <Location /authoring> >> ProxyPass >> http://domainname.org:8080/lenya/domainname/authoring >> ProxyPassReverse >> http://domainname.org:8080/lenya/domainname/authoring >> # Open access >> Order allow,deny >> Allow from all >> </Location> >> <Location /> >> >> Redirect permanent /lenya/domainname/live >> http://domainname.org >> Redirect permanent /lenya/domainname/archive >> https://domainname.org/archive >> Redirect permanent /lenya/domainname/authoring >> https://domainname.org/authoring >> Redirect permanent /lenya/domainname/modules >> https://domainname.org/lenya/modules >> Redirect permanent /lenya/domainname/trash >> https://domainname.org/trash >> RedirectMatch permanent ^/$ >> https://domainname.org/authoring/index.html >> # Open access >> Order allow,deny >> Allow from all >> </Location> >> >> </VirtualHost> >> >> >> Best regards, >> >> Yehya >> >> >> Am 30.11.2010 11:25, schrieb Vik Tara: >> >>> Hi Yehya, >>> >>> >>>> Only accessing the authoring environment https://www.domain.org shows >>>> a problem, where I can not find any hint to its solution: >>>> >>> You could have a mistake in your apache virtual host configuration - >>> can you post it? >>> >>> >>>> Uploading images/assets does not work >>>> >>> Have you configured uploads to be allowed in the local.build.properties? >>> >>> Regards >>> >>> >>> Vik >>> >>> On 11/30/2010 10:22 AM, Yehya Mohamad wrote: >>> >>>> Hi all, >>>> >>>> >>>> we have installed and customized a Lenya 2.0.3 version, it is so far >>>> running stable locally (live and authoring) using >>>> http://host:8080/lenya/... >>>> >>>> When putting it in an apache server environment, we get everything >>>> running by accessing the live area like http://www.domain.org >>>> Only accessing the authoring environment https://www.domain.org shows >>>> a problem, where I can not find any hint to its solution: >>>> >>>> Uploading images/assets does not work, after selecting an image, the >>>> system displays the https://www.domain.org/authoring/index.html >>>> without any error message in the logs >>>> >>>> Please tell me, if you know where to look for a solution >>>> >>>> >>>> >>>> Best Regards >>>> >>>> Yehya Mohamad >>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >