Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Landing pad 2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
ivelov-vm
Landing pad 2
Commits
d098cedf
Commit
d098cedf
authored
1 year ago
by
ivelov-vm
Browse files
Options
Downloads
Patches
Plain Diff
feat: add htaccess
parent
45703992
Branches
main
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.htaccess
+32
-0
32 additions, 0 deletions
.htaccess
server.js
+2
-0
2 additions, 0 deletions
server.js
with
35 additions
and
0 deletions
.gitignore
+
1
−
0
View file @
d098cedf
...
...
@@ -108,6 +108,7 @@ coverage
.env
license.txt
build
exports
*.cache
.strapi-updater.json
This diff is collapsed.
Click to expand it.
.htaccess
0 → 100644
+
32
−
0
View file @
d098cedf
#DirectoryIndex public/index.html
<
IfModule
mod_rewrite.c
>
<
IfModule
mod_negotiation.c
>
Options
-MultiViews -Indexes
</
IfModule
>
RewriteEngine
On
# Handle Authorization Header
RewriteCond
%{HTTP:Authorization} .
RewriteRule
.* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteCond
%{REQUEST_URI} (.+)/$
RewriteRule
^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteRule
^ public/index.php [L]
RewriteBase
/
RewriteRule
^(.*)$ http://localhost:1337%{REQUEST_URI} [L,P]
</
IfModule
>
<
IfModule
mod_headers.c
>
Header
set
Access-Control-Allow-Origin "http://ivelov-vm.groupbwt.com"
#Header set Access-Control-Allow-Origin "*"
Header
set
Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization, X-XSRF-TOKEN"
Header
set
Access-Control-Allow-Credentials "true"
</
IfModule
>
This diff is collapsed.
Click to expand it.
server.js
0 → 100644
+
2
−
0
View file @
d098cedf
const
strapi
=
require
(
'
@strapi/strapi
'
);
strapi
(
/* {...} */
).
start
();
\ No newline at end of file
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