LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2014, 02:31 AM   #1
NerdGZ
LQ Newbie
 
Registered: Feb 2014
Posts: 12

Rep: Reputation: Disabled
httpd Request Entity Too Large using "ServerAlias"


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
 
Old 09-17-2014, 07:40 AM   #2
NerdGZ
LQ Newbie
 
Registered: Feb 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hi Everyone,

I found that when i access the application via ServerAlias name "test.one.com" it only allows me to upload files not more than 12K.

Where i supposed to look to upgrade that?

Because if i access the application via ServerName i can upload files of size of 3MB.

Thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cups/lpr returns "Request Entity Too Large" didiw Linux - Software 4 12-16-2013 05:14 PM
[SOLVED] Difference between installing Apache httpd from "source" and "yum" Iyyappan Linux - Server 9 03-24-2012 07:07 AM
Starting httpd: Ouch! ap_mm_create(1048576, "/var/run/httpd.mm.1020") dkd_nvs Linux - General 4 07-22-2007 12:06 AM
CUPS Error "Request Entity Too Large" When Adding/Modifying Printer liquidrabbit Linux - Software 1 06-09-2006 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration