User Tools

Site Tools


accessing_your_vhost_folders

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
accessing_your_vhost_folders [2025/02/22 03:14] – added log file location peteyboyaccessing_your_vhost_folders [2025/02/26 00:37] (current) – added note about the old folders peteyboy
Line 3: Line 3:
  
 ==== Accessing Web Root === ==== Accessing Web Root ===
-If your site is VHOSTed, then you can access your site'own log file by:+If your site is a [[vhost|VHOST]], then you can access your site'files by:
  
-  - ssh to your VHOST with ''ssh {LOGNAME}@{VHOSTDOMAIN}'' with your normal LOGNAME and password. (this actually logs you into the 'norge' server with a few environment variables set) +  - ssh to your VHOST 'server' with ''ssh {LOGNAME}@{VHOSTDOMAIN}'' with your normal LOGNAME and password. (this actually logs you into the 'norge' server with a few environment variables set) 
-  - Change to your html folder by using the ''$VHOST'' environment variable, e.g. ''cd $VHOST''+  - Change to your ''html'' folder by using the ''$VHOST'' environment variable, e.g. ''cd $VHOST''
  
  
-ex: +ex (''$'' is the prompt in the example below, you should type equivalent commands at your shell prompt)
   $ ssh peteyboy@irulecomputers.com   $ ssh peteyboy@irulecomputers.com
   … (login stuff)   … (login stuff)
Line 24: Line 24:
      
 This folder will contain subfolders, each for your different VHOSTS. In those folders, place all the web files for your website, as you would in ~/html for your site on the cluster, ex: This folder will contain subfolders, each for your different VHOSTS. In those folders, place all the web files for your website, as you would in ~/html for your site on the cluster, ex:
-  $ls+  $ls /vhost/www/nz/p/peteyboy
   irulecomputers.com/   irulecomputers.com/
   $   $
Line 30: Line 30:
 ==== Accessing Log Files ==== ==== Accessing Log Files ====
 your log files are ///var/log/nginx/{VHOSTDOMAIN}// and ///var/log/nginx/{VHOSTDOMAIN}.err// your log files are ///var/log/nginx/{VHOSTDOMAIN}// and ///var/log/nginx/{VHOSTDOMAIN}.err//
 +
 +==== Web Development on VHOST ====
 +Some tools you may want to use (for example the [[nano|The nano editor]]) are in ///vhost/pkg/bin// Please be sure to add that to your PATH when logging into your VHOST server. 
 +
 +One thing you can do is in your ''~/.bashrc'' or ''~/.profile'' (shared through all your cluster instances), add a line to add //vhost/pkg/bin// to your command line path if it is present. Add a line like this:
 +
 +  # Set PATH so it includes VHOST bin if it exists; that is, if you are logged in to VHOST
 +  if [ -d "/vhost/pkg/bin" ] ; then
 +    PATH="/vhost/pkg/bin:${PATH}"
 +  fi
 +
 +
 +==== What about my VHOST folders in my user space? ====
 +The old way to access your vhost files was to look for a folder named after your domain under your cluster ''~/html'' folder. You may still have these existing folders and files, but making changes to them directly will no longer sync them to the folders on norge, so you should not use them going forward.
 +
    
accessing_your_vhost_folders.1740194067.txt.gz · Last modified: 2025/02/22 03:14 by peteyboy