Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
d851bdac
Commit
d851bdac
authored
13 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
fix .htaccess file crashing apache+php-cgi
parent
d5ba4ec8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.htaccess
+5
-3
5 additions, 3 deletions
.htaccess
lib/setup.php
+7
-5
7 additions, 5 deletions
lib/setup.php
with
12 additions
and
8 deletions
.htaccess
+
5
−
3
View file @
d851bdac
ErrorDocument
404 //owncloud/core/templates/404.php
php_value upload_max_filesize 512M
php_value post_max_size 512M
SetEnv
htaccessWorking true
<
IfModule
mod_php5.c
>
php_value upload_max_filesize 512M
php_value post_max_size 512M
SetEnv
htaccessWorking true
</
IfModule
>
Options
-Indexes
This diff is collapsed.
Click to expand it.
lib/setup.php
+
7
−
5
View file @
d851bdac
...
...
@@ -273,12 +273,14 @@ class OC_Setup {
* create .htaccess files for apache hosts
*/
private
static
function
createHtaccess
()
{
global
$SERVERROOT
;
global
$WEBROOT
;
$SERVERROOT
=
OC
::
$SERVERROOT
;
$WEBROOT
=
OC
::
$WEBROOT
;
$content
=
"ErrorDocument 404 /
$WEBROOT
/core/templates/404.php
\n
"
;
//custom 404 error page
$content
.
=
"php_value upload_max_filesize 20M
\n
"
;
//upload limit
$content
.
=
"php_value post_max_size 20M
\n
"
;
$content
.
=
"SetEnv htaccessWorking true
\n
"
;
$content
.
=
'<IfModule mod_php5.c>'
;
$content
.
=
'php_value upload_max_filesize 512M'
;
//upload limit
$content
.
=
'php_value post_max_size 512M'
;
$content
.
=
'SetEnv htaccessWorking true'
;
$content
.
=
'</IfModule>'
;
$content
.
=
"Options -Indexes
\n
"
;
@
file_put_contents
(
$SERVERROOT
.
'/.htaccess'
,
$content
);
//supress errors in case we don't have permissions for it
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment