Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dev.biuro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Biuro
dev.biuro
Commits
8b3b23af
Commit
8b3b23af
authored
Apr 30, 2019
by
Simonas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redirect files added
parent
14b373a3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
160 additions
and
2 deletions
+160
-2
.htaccess
!information/redirects/.htaccess
+76
-0
.htaccess
!information/redirects/mysite/.htaccess
+3
-0
.htaccess
!information/redirects/private/.htaccess
+76
-0
.htaccess
!information/redirects/private/mysite/.htaccess
+3
-0
README.md
README.md
+2
-2
No files found.
!information/redirects/.htaccess
0 → 100644
View file @
8b3b23af
php_value memory_limit 512M
php_value max_execution_time 850
### SILVERSTRIPE START ###
<
Files
*.ss
>
Order
deny,allow
Deny
from
all
Allow
from
127.0.0.1
</
Files
>
<
Files
web.config
>
Order
deny,allow
Deny
from
all
</
Files
>
ErrorDocument
404 /assets/error-404.html
ErrorDocument
500 /assets/error-500.html
<
ifModule
mod_headers.c
>
# WEEK
<
FilesMatch
"\.(ico|gif|jpg|jpeg|png|flv|pdf)$"
>
Header
set
Cache-Control "max-age=604800"
</
FilesMatch
>
<
FilesMatch
"\.(js|css|swf)$"
>
Header
set
Cache-Control "max-age=604800"
</
FilesMatch
>
# 45 MIN
<
FilesMatch
"\.(html|htm|txt)$"
>
Header
set
Cache-Control "max-age=2700"
</
FilesMatch
>
</
ifModule
>
<
IfModule
mod_alias.c
>
RedirectMatch
403 /silverstripe-cache(/|$)
</
IfModule
>
<
ifModule
mod_gzip.c
>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</
ifModule
>
<
IfModule
mod_rewrite.c
>
SetEnv
HTTP_MOD_REWRITE On
RewriteEngine
On
RewriteBase
/
RewriteCond
%{HTTPS}
off
RewriteRule
^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond
%{REQUEST_URI} ^(.*)$
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteRule
.* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</
IfModule
>
#php_flag safe_mode O
#php_value upload_max_filesize 10M
#php_value post_max_size 10M
### SILVERSTRIPE END ###
#php_flag display_startup_errors on
#php_flag display_errors on
#php_flag html_errors on
# enable PHP error logging
php_flag log_errors
on
php_value error_log /home/biuro/domains/biuro.lt/public_html/errors.log
!information/redirects/mysite/.htaccess
0 → 100644
View file @
8b3b23af
<
FilesMatch
"\.(php|php3|php4|php5|phtml|inc)$"
>
Deny
from
all
</
FilesMatch
>
!information/redirects/private/.htaccess
0 → 100644
View file @
8b3b23af
php_value memory_limit 512M
php_value max_execution_time 850
### SILVERSTRIPE START ###
<
Files
*.ss
>
Order
deny,allow
Deny
from
all
Allow
from
127.0.0.1
</
Files
>
<
Files
web.config
>
Order
deny,allow
Deny
from
all
</
Files
>
ErrorDocument
404 /assets/error-404.html
ErrorDocument
500 /assets/error-500.html
<
ifModule
mod_headers.c
>
# WEEK
<
FilesMatch
"\.(ico|gif|jpg|jpeg|png|flv|pdf)$"
>
Header
set
Cache-Control "max-age=604800"
</
FilesMatch
>
<
FilesMatch
"\.(js|css|swf)$"
>
Header
set
Cache-Control "max-age=604800"
</
FilesMatch
>
# 45 MIN
<
FilesMatch
"\.(html|htm|txt)$"
>
Header
set
Cache-Control "max-age=2700"
</
FilesMatch
>
</
ifModule
>
<
IfModule
mod_alias.c
>
RedirectMatch
403 /silverstripe-cache(/|$)
</
IfModule
>
<
ifModule
mod_gzip.c
>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</
ifModule
>
<
IfModule
mod_rewrite.c
>
SetEnv
HTTP_MOD_REWRITE On
RewriteEngine
On
RewriteBase
/
RewriteCond
%{HTTPS}
off
RewriteRule
^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond
%{REQUEST_URI} ^(.*)$
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteRule
.* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</
IfModule
>
#php_flag safe_mode O
#php_value upload_max_filesize 10M
#php_value post_max_size 10M
### SILVERSTRIPE END ###
#php_flag display_startup_errors on
#php_flag display_errors on
#php_flag html_errors on
# enable PHP error logging
php_flag log_errors
on
php_value error_log /home/biuro/domains/biuro.lt/public_html/errors.log
!information/redirects/private/mysite/.htaccess
0 → 100644
View file @
8b3b23af
<
FilesMatch
"\.(php|php3|php4|php5|phtml|inc)$"
>
Deny
from
all
</
FilesMatch
>
README.md
View file @
8b3b23af
...
...
@@ -112,10 +112,10 @@ Can't share C drive
-
docker load --input ourdemo.tar
-
docker build -t biuro/web:0.0.2
0
.
-
docker build -t biuro/web:0.0.2
1
.
-
docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
-
sudo docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs
-
docker push biuro/web:0.0.2
0
-
docker push biuro/web:0.0.2
1
-
sudo chown -R www-data:www-data wordpress/wp-content/plugins
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment