Home / Web Application Deployment
Web Application Deployment
The jenkins
user must be used for all filesystem transactions: create {org} directory, upload files, edit files, etc.
The root
user must be used for all entries in the vhost files.
Local Development
Server: | svn-1.digitec.local |
Path: | /home/www/html/dev/{org}/{group}/{project}/ |
User Name: | jenkins |
Password: | DegcuWandetowAi |
Local URL: | http://svn-1.digitec.local/dev/{org}/{group}/{project}/ |
Staging
Server: | staging.digitec.io |
Path: | /www/staging.digitec.io/{org}/{group}/{project}/ |
User Name: | jenkins |
Password: | DegcuWandetowAi |
Public Protected URL: | http://staging.digitec.io/{org}/{group}/{project}/ |
Protected URL User Name: | {username} |
Protected URL User Password: | {password} |
vhost
Entry to Staging
Adding a Add vhost
directory directive in /etc/httpd/conf.d/staging.digitec.io.conf
.
# Begin {Org} Block
# ---------------------------------------------------
<Directory "/www/staging.digitec.io/{org}">
AuthType Basic
AuthName "Digitec RHS-1 Staging Server - {Org}"
AuthUserFile /etc/httpd/secure/staging.digitec.io/{org}.htpasswd
Require valid-user
<FilesMatch "\.(mp4|flv|webm|ogg|pdf)$">
Satisfy any
order allow,deny
allow from all
</FilesMatch>
</Directory>
# ---------------------------------------------------
vhost
Entry
Add Password Protection to New -
ssh
in as root to the staging server. - Navigate to the
/etc/httpd/secure/staging.digitec.io/
directory. - Create the
{org}.htpasswd
file.- The password entry is usually
user: {org}, password: 101
.
- The password entry is usually
htpasswd -c {org}.htpasswd {org}
Restart the server.
httpd -k restart