Re: Problem with Apache 2 and Apache Server

Yehya Mohamad <[email protected]> Tue, 30 Nov 2010 11:43:04 +0100
Newsgroups gmane.comp.cms.lenya.user
Message-ID <[email protected]>
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]
>