Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
2dff357a
Commit
2dff357a
authored
12 years ago
by
Michiel de Jong
Browse files
Options
Downloads
Patches
Plain Diff
add new htaccess things into setup script too
parent
9469c994
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/setup.php
+7
-2
7 additions, 2 deletions
lib/setup.php
with
7 additions
and
2 deletions
lib/setup.php
+
7
−
2
View file @
2dff357a
...
...
@@ -307,7 +307,7 @@ class OC_Setup {
*/
private
static
function
createHtaccess
()
{
$content
=
"ErrorDocument 403 "
.
OC
::
$WEBROOT
.
"/core/templates/403.php
\n
"
;
//custom 403 error page
$content
=
"ErrorDocument 404 "
.
OC
::
$WEBROOT
.
"/core/templates/404.php
\n
"
;
//custom 404 error page
$content
.
=
"ErrorDocument 404 "
.
OC
::
$WEBROOT
.
"/core/templates/404.php
\n
"
;
//custom 404 error page
$content
.
=
"<IfModule mod_php5.c>
\n
"
;
$content
.
=
"php_value upload_max_filesize 512M
\n
"
;
//upload limit
$content
.
=
"php_value post_max_size 512M
\n
"
;
...
...
@@ -318,7 +318,12 @@ class OC_Setup {
$content
.
=
"</IfModule>
\n
"
;
$content
.
=
"<IfModule mod_rewrite.c>
\n
"
;
$content
.
=
"RewriteEngine on
\n
"
;
$content
.
=
"RewriteRule .* - [env=HTTP_AUTHORIZATION:%
{
HTTP:Authorization
}
,last]
\n
"
;
$content
.
=
"RewriteRule .* - [env=HTTP_AUTHORIZATION:%
{
HTTP:Authorization
}
,last]
\n
"
;
$content
.
=
"RewriteRule ^.well-known/host-meta /public.php?service=host-meta [QSA,L]
\n
"
;
$content
.
=
"RewriteRule ^.well-known/carddav /remote.php/carddav/ [R]
\n
"
;
$content
.
=
"RewriteRule ^.well-known/caldav /remote.php/caldav/ [R]
\n
"
;
$content
.
=
"RewriteRule ^apps/([^/]*)/(.*\.(css|php))$ index.php?app=$1&getfile=$2 [QSA,L]
\n
"
$content
.
=
"RewriteRule ^remote/(.*) remote.php [QSA,L]
\n
"
;
$content
.
=
"RewriteRule ^.well-known/carddav /apps/contacts/carddav.php [R]
\n
"
;
$content
.
=
"RewriteRule ^.well-known/caldav /apps/calendar/caldav.php [R]
\n
"
;
$content
.
=
"</IfModule>
\n
"
;
...
...
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