Hello Everyone,
i am new on apache and i cannot fix the problem i have on my own. There is an application running with apache. when i test the application via the ServerName i can upload files but if i use the ServerAlias to access the application and try to upload files i get this error:
Request Entity Too Large
does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.
________________________________________
Apache/2.2.15 Server at test.one.com Port 443
i spent a lot of time searching on the internet and trying so many things that i dont know what to do anymore.
this is my configuration of apache:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName test.com
ServerAlias test.one.com
DocumentRoot /data/apache-tomcat-7.0.42_8080/webapps/test
<Location /test/>
ProxyPass ajp://localhost:8427/test/
ProxyPassReverse ajp://localhost:8427/test/
</Location>
<LocationMatch />
ProxyPass ajp://localhost:8427/test
ProxyPassReverse ajp://localhost:8427/test
</LocationMatch>
Redirect permanent /
https://test.com/
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/pki/tls/http/test/test.cer
SSLCertificateKeyFile /etc/pki/tls/http/test/test.key
SSLProtocol All -SSLv2
SSLCipherSuite HIGH:MEDIUM:!aNULL:+MD5
DocumentRoot "/data/apache-tomcat-7.0.42_8080/webapps/test/"
ServerName test.com
ServerAlias test.one.com
<Location /test/>
ProxyPass ajp://localhost:8427/test/
ProxyPassReverse ajp://localhost:8427/test/
</Location>
<LocationMatch />
ProxyPass ajp://localhost:8427/test
ProxyPassReverse ajp://localhost:8427/test
</LocationMatch>
</VirtualHost>
Thank you in advance