Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
aphp1_classwork80
Project
Project
Details
Activity
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
Egor Kremnev
aphp1_classwork80
Commits
e06e56f1
Commit
e06e56f1
authored
Aug 22, 2023
by
Egor Kremnev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scripts
parent
cf2e996b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
18 deletions
+10
-18
README.md
README.md
+1
-1
default.conf
scripts/nginx/default.conf
+9
-17
No files found.
README.md
View file @
e06e56f1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
## Установка пхп
## Установка пхп
1.
sudo add-apt-repository ppa:ondrej/php
1.
sudo add-apt-repository ppa:ondrej/php
2.
sudo apt-get update
2.
sudo apt-get update
3.
sudo apt-get install php8.0 php8.0-curl php8.0-mbstring php-sqlite3 php-xml php8.0-zip php-mbstring php-xml php8.0-fpm php-mysql
3.
sudo apt-get install php8.0 php8.0-curl php8.0-mbstring php-sqlite3 php-xml php8.0-zip php-mbstring php-xml php8.0-fpm php-mysql
php8.0-fpm
## Установка стабильных зависимостей для фронтенда
## Установка стабильных зависимостей для фронтенда
4.
sudo apt install nodejs
4.
sudo apt install nodejs
...
...
scripts/nginx/default.conf
View file @
e06e56f1
server
{
server
{
listen
80
;
listen
80
default_server
;
server_name
104
.
248
.
29
.
4
;
# Здесь адрес вашего сервера
listen
[::]:
80
default_server
;
server_name
_
;
# Здесь адрес вашего сервера
root
/
home
/
demo
/
application
/
public
;
root
/
home
/
demo
/
application
/
public
;
add_header
X
-
Frame
-
Options
"SAMEORIGIN"
;
index
index
.
php
;
add_header
X
-
XSS
-
Protection
"1; mode=block"
;
add_header
X
-
Content
-
Type
-
Options
"nosniff"
;
index
index
.
html
index
.
htm
index
.
php
;
charset
utf
-
8
;
location
/ {
location
/ {
try_files
$
uri
$
uri
/ /
index
.
php
?$
query_string
;
try_files
$
uri
$
uri
/ /
index
.
php
?$
query_string
;
}
}
location
= /
favicon
.
ico
{
access_log
off
;
log_not_found
off
; }
location
= /
robots
.
txt
{
access_log
off
;
log_not_found
off
; }
error_page
404
/
index
.
php
;
location
~ \.
php
$ {
location
~ \.
php
$ {
try_files
$
uri
=
404
;
fastcgi_pass
unix
:/
var
/
run
/
php
/
php8
.
1
-
fpm
.
sock
;
# Указываем актуальную для вашего сервера версию php
fastcgi_pass
unix
:/
var
/
run
/
php
/
php8
.
1
-
fpm
.
sock
;
# Указываем актуальную для вашего сервера версию php
fastcgi_index
index
.
php
;
fastcgi_index
index
.
php
;
fastcgi_param
SCRIPT_FILENAME
$
realpath
_root
$
fastcgi_script_name
;
fastcgi_param
SCRIPT_FILENAME
$
document
_root
$
fastcgi_script_name
;
include
fastcgi_params
;
include
fastcgi_params
;
}
}
location
~ /\.(?!
well
-
known
).* {
location
~* \.(
jpg
|
jpeg
|
png
|
gif
|
ico
|
css
|
js
)$ {
deny
all
;
expires
1
y
;
add_header
Cache
-
Control
"public, no-transform"
;
}
}
}
}
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