robots.txt
This commit is contained in:
parent
c5a5a2dff5
commit
5d19eacf95
4 changed files with 20 additions and 6 deletions
|
@ -7,6 +7,7 @@ set +e
|
|||
ln -fs "$scriptdir/smw-jobs.sh" /usr/local/bin/smw-jobs
|
||||
ln -fs "$scriptdir/nginx.conf" /etc/nginx/nginx.conf
|
||||
ln -fs "$scriptdir/fastcgi.conf" /etc/nginx/fastcgi.conf
|
||||
ln -fs "$scriptdir/robots.txt" /etc/nginx/robots.txt
|
||||
ln -fs "$scriptdir/public_mediawiki/public_mediawiki.conf" /etc/nginx/sites-enabled/public_mediawiki.conf
|
||||
ln -fs "$scriptdir/orga_mediawiki/orga_mediawiki.conf" /etc/nginx/sites-enabled/orga_mediawiki.conf
|
||||
ln -fs "$scriptdir/pgtune.conf" "/etc/postgresql/15/main/conf.d/pgtune.conf"
|
||||
|
|
|
@ -9,9 +9,14 @@ server {
|
|||
client_body_timeout 60;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
location ~ \.ht {
|
||||
deny all;
|
||||
}
|
||||
location ~ \.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location /robots.txt {
|
||||
root /etc/nginx;
|
||||
try_files /robots.txt =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ @rewrite;
|
||||
|
|
|
@ -9,9 +9,14 @@ server {
|
|||
client_body_timeout 60;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
location ~ \.ht {
|
||||
deny all;
|
||||
}
|
||||
location ~ \.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location /robots.txt {
|
||||
root /etc/nginx;
|
||||
try_files /robots.txt =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ @rewrite;
|
||||
|
|
3
robots.txt
Normal file
3
robots.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
User-Agent: *
|
||||
Disallow: /
|
||||
|
Loading…
Add table
Reference in a new issue