Files
apache2/conf/create_vhost.conf.sample
T
chrisandClaude Opus 5.5 fec60403d1 Chrooted SFTP access also for suEXEC (mod_fcgid) sites
create_vhost.sh:
- suEXEC (mod_fcgid) sites get the same chrooted SFTP setup as static
  suEXEC sites: web base directory root:root 755, DocumentRoot owned by
  suEXEC user/group, SFTP group membership, sshd and chroot path checks.
- SFTP group: use $SFTP_CHROOT_GROUP if it exists, otherwise 'sftpusers'
  (if exists). If neither exists, skip that step (group is no longer
  created).

fix_sftp_site_permissions.sh:
- Also handle active '*.suexec' vhosts. PHP files (*.php, *.phtml,
  *.php5) are not touched there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:31:58 +01:00

98 lines
2.5 KiB
Plaintext

## ===================================================================
## - Configuration File for "create_vhost_php.sh" Script
## ===================================================================
# ----------
# - Note:
# -
# - - Presens of this configuration file is not required.
# -
# - - Settings here overwrites the script defaults
# -
# - - Settings here can be overwritten by commandline parameters.
# ----------
# - Place phpinfo file into documentroot directory
# -
# - Defaults to 'true'
# -
#CREATE_PHPINFO_FILE=
# - Use Projectname instead of main-domain.tld as wensites base directory
# -
# - Defaults to 'false'
# -
#USE_PROJECT_NAME=
# - Where to store apache log files
# -
# - usefull, if all logfiles are stored in a common logfile-directory.
# -
# - This log-directory will also be used for vhost configurations which
# - only redirect a site.
# -
# - Example:
# - COMMON_LOGFILE_DIR="/var/log/apache2"
# -
# - Defaults to COMMON_LOGFILE_DIR="/var/log/apache2"
# -
#COMMON_LOGFILE_DIR=""
# - Where to store apache log files
# -
# - This log-directory will be used for vhost configurations which
# - only redirect a site.
# -
# - Example:
# - REDIRECT_LOGFILE_DIR="/var/log/apache2"
# -
# - Defaults to REDIRECT_LOGFILE_DIR="/var/log/apache2"
# -
#REDIRECT_LOGFILE_DIR=""
# - Where to store vhost configuration files
# -
# - Example:
#- VHOST_BASE_DIR="/usr/local/apache2/conf/vhosts/0"
# -
#VHOST_BASE_DIR=""
# - Directory, where all the website's base directoties are stored.
# -
# - If not set, script tries to determine it.
# -
# - Example:
#- WEBSITES_ROOT_DIR="/var/www/html/projekte"
# -
#WEBSITES_ROOT_DIR=""
# - Create Symlink for Website's Base Directory
# -
# - Defaults to 'false'
# -
#CREATE_SYMLINK_WEB_BASE_DIR=
# - Group for chrooted SFTP users (vhost types "suEXEC (using mod_fcgid)"
# - and "static site with suEXEC (chrooted SFTP access)").
# -
# - The suEXEC user is added to this group, if it exists. Otherwise it is
# - added to group 'sftpusers' (if exists). If neither group exists, the
# - user is not added to any SFTP group. (The group is not created.)
# -
# - sshd must restrict members of this group, i.e. at the end of
# - /etc/ssh/sshd_config:
# -
# - Match Group sftp-chroot
# - ChrootDirectory %h
# - ForceCommand internal-sftp -u 0027
# - AllowTcpForwarding no
# - AllowAgentForwarding no
# - X11Forwarding no
# - PermitTunnel no
# - PermitTTY no
# -
# - Defaults to 'sftp-chroot'
# -
#SFTP_CHROOT_GROUP=""