Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
7c28163d
Commit
7c28163d
authored
Jun 11, 2014
by
Виталий Липатов
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add sandbox scripts
parent
58cfc721
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
0 deletions
+91
-0
generate.sh
web/sandbox/generate.sh
+12
-0
generate.template
web/sandbox/generate.template
+74
-0
generate_all.sh
web/sandbox/generate_all.sh
+5
-0
No files found.
web/sandbox/generate.sh
0 → 100755
View file @
7c28163d
#!/bin/sh -x
cat
generate.template |
sed
-e
"s|lav|
$1
|g"
>
$1
.conf
i
=
$1
mkdir
-p
/home/
$i
/pub/ /home/
$i
/pvt/ /home/
$i
/tmp/sessions/
chown
$i
:webmaster /home/
$i
/pub/ /home/
$i
/pvt/ /home/
$i
/tmp/sessions/
chmod
g+s /home/
$i
/pub/ /home/
$i
/pvt/
chmod
ug+rwx /home/
$i
/pub/ /home/
$i
/pvt/
chmod
o-rwx /home/
$i
/pub/ /home/
$i
/pvt/
service httpd2 reload
web/sandbox/generate.template
0 → 100644
View file @
7c28163d
<VirtualHost *>
ServerName lav.sandbox.eterhost.ru
ServerAlias *.lav.sandbox.eterhost.ru
AssignUserID lav nobody
ServerAdmin support@eterhost.ru
DocumentRoot "/home/lav/pvt"
#ScriptAlias /cgi/ "/home/etersoft/www/eterhost.ru/cgi/"
#ScriptAlias /cgi/ "/var/www/cgi-bin/"
ErrorLog /home/lav/log/error.log
CustomLog /home/lav/log/access.log common
# http://httpd.apache.org/docs/2.0/vhosts/examples.html
# http://www.easymodrewrite.com/example-subdomains
RewriteEngine On
RewriteCond %{HTTP_HOST} !^lav.sandbox.eterhost.ru$ [NC]
RewriteCond %{HTTP_HOST} ^(.*)\.lav\.sandbox\.eterhost\.ru$ [NC]
RewriteRule ^(.*)$ /%1/$1 [L]
#RewriteRule ^(.*) http://lav.sandbox.eterhost.ru/%1/$1 [L]
# hack with tmp due incorrect using
# http://habrahabr.ru/blogs/php/51485/
# TODO: enable
#php_admin_value open_basedir "/home/lav/pvt:/home/lav/tmp:."
php_admin_value upload_tmp_dir "/home/lav/tmp"
php_admin_value session.save_path "/home/lav/tmp/sessions"
# fix DOCUMENT_ROOT
php_admin_value auto_prepend_file "/etc/httpd2/conf/setdocroot.php"
<Directory /home/lav/pvt>
AllowOverride All
</Directory>
<Location "/">
include /etc/httpd2/conf/mysql_auth
</Location>
</VirtualHost>
<VirtualHost *>
ServerName lav.pubsandbox.eterhost.ru
ServerAlias *.lav.pubsandbox.eterhost.ru
AssignUserID lav nobody
ServerAdmin support@eterhost.ru
ErrorLog /home/lav/log/puberror.log
CustomLog /home/lav/log/pubaccess.log common
DocumentRoot "/home/lav/pub"
RewriteEngine On
RewriteCond %{HTTP_HOST} !^lav.pubsandbox.eterhost.ru$ [NC]
RewriteCond %{HTTP_HOST} ^(.*)\.lav\.pubsandbox\.eterhost\.ru$ [NC]
RewriteRule ^(.*)$ /%1/$1 [L]
# mod_vhost_alias - http://www.softtime.ru/article/index.php?id_article=103
#VirtualDocumentRoot /home/lav/pub/%1
#RewriteEngine On
#RewriteCond %{HTTP_HOST} ^www\.(.*)\.lav\.pubsandbox\.eterhost\.ru$ [NC]
#RewriteRule ^(.*)$ http://%1.lav.pubsandbox.eterhost.ru$1 [L]
# hack with tmp due incorrect using
# http://habrahabr.ru/blogs/php/51485/
# TODO: enable
#php_admin_value open_basedir "/home/lav/www:/home/lav/tmp:."
php_admin_value upload_tmp_dir "/home/lav/tmp"
php_admin_value session.save_path "/home/lav/tmp/sessions"
# fix DOCUMENT_ROOT
php_admin_value auto_prepend_file "/etc/httpd2/conf/setdocroot.php"
<Directory /home/lav/pub>
AllowOverride All
</Directory>
</VirtualHost>
\ No newline at end of file
web/sandbox/generate_all.sh
0 → 100755
View file @
7c28163d
#!/bin/sh
for
i
in
alexander angel baraka barbass forn kondratyuk kr1zo lav lsv pav redpolly stas
;
do
./generate.sh
$i
done
service httpd2 reload
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