User Tools

Site Tools


create_site

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
create_site [2014/04/17 18:27]
kyxap
create_site [2015/02/26 10:30]
kyxap
Line 1: Line 1:
-{{tag>​debian squeeze ubuntu bash vhost user logrotate}}====== Добавление вхоста в apache+nginx ======+{{tag>​debian squeeze ubuntu bash vhost user logrotate ​apache nginx}}====== Добавление вхоста в apache+nginx ======
  
 FIXME FIXME
Line 52: Line 52:
     TMPCONFDIR="/​opt/​scripts/​www_configs"​     TMPCONFDIR="/​opt/​scripts/​www_configs"​
  
- # can be set manual ​IP='​111.111.111.111'​ +    ​# can be set as IP='​111.111.111.111'​ 
- IP=`ip route get 8.8.8.8 | head -1 | awk '​{print $NF}'`+    IP=`ip route get 8.8.8.8 | head -1 | awk '​{print $NF}'`
  
     if [[ ! -d $TMPCONFDIR ]]; then     if [[ ! -d $TMPCONFDIR ]]; then
Line 66: Line 66:
     if [[ ! -d $DOCROOT ]]; then     if [[ ! -d $DOCROOT ]]; then
         mkdir -p $DOCROOT         mkdir -p $DOCROOT
 +        chown -R $user:$user $DOCROOT
     fi     fi
  
create_site.txt · Last modified: 2015/09/24 18:46 by kyxap