Skip to content

Commit 2ed7728

Browse files
author
Philip Guo
committed
added top-level .htaccess
1 parent c8d5132 commit 2ed7728

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.htaccess

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<IfModule mod_security.c>
2+
3+
# Set a ~2MB limit for response headers (bigger than default 512K limit)
4+
SecResponseBodyLimit 2000000
5+
6+
</IfModule>

README

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ current directory:
5454
edu-python.css
5555
jquery-1.3.2.min.js
5656
jquery.textarea.js
57+
.htaccess - to increase the size of allowed Apache HTTP responses
5758

5859

5960
The back-end is a server-side CGI application that takes Python script
@@ -85,16 +86,15 @@ deployed on the same server (unless you do some fancy proxy magic).
8586
======
8687
Misc. notes
8788

88-
8989
If your server limits the size of responses received from HTTP requests,
9090
then you might need to add the following .htaccess file in your
9191
top-level (front-end) directory, in order to allow Online Python Tutor
9292
to receive traces from the back-end:
9393

9494
<IfModule mod_security.c>
9595

96-
# Set a ~10MB limit for response headers (way bigger than default 512K limit)
97-
SecResponseBodyLimit 10000000
96+
# Set a ~2MB limit for response headers (bigger than default 512K limit)
97+
SecResponseBodyLimit 2000000
9898

9999
</IfModule>
100100

0 commit comments

Comments
 (0)