Skip to content

sauvank/tools_sysadmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

tools_sysadmin

scripts for sysadmin

generate_vhost.sh

generate and create file for virtual host

  • params 1 : site name
  • params 2 : url site
  • params 3 : path to folder

exemple : ./generate_vhost.sh google google.fr /var/www/html/google/

## Apache2 + nodejs

1: sudo a2enmod proxy proxy_http

to the sites-available file :

<VirtualHost *:80>
ServerAdmin [email protected]
ServerName www.domaine.fr
ServerAlias www.domaine.fr

ProxyRequests off

<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>

<Location />
    ProxyPass http://www.domaine.fr:3000/
    ProxyPassReverse http://www.domaine.fr:3000/
</Location>

             ErrorLog /var/log/apache2/general.log
             CustomLog /var/log/apache2/access.log combined

</VirtualHost>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages