Browse Source

old configs, initial commit

master
Jared Dunbar 3 years ago
commit
1c1c0253f9
Signed by untrusted user: jared GPG Key ID: CF202CC859BAC692
  1. 44
      old-cfgs/000-default-le-ssl.conf
  2. 41
      old-cfgs/000-default.conf
  3. 13
      old-cfgs/browniepoints.conf
  4. 15
      old-cfgs/clarkson.conf
  5. 139
      old-cfgs/default-ssl.conf
  6. 7
      old-cfgs/derpysayings.conf
  7. 7
      old-cfgs/dev.conf
  8. 15
      old-cfgs/fsuvius.conf
  9. 12
      old-cfgs/grm.conf
  10. 5
      old-cfgs/history.conf
  11. 13
      old-cfgs/life.conf
  12. 15
      old-cfgs/login.conf
  13. 12
      old-cfgs/mirrorstat.conf
  14. 5
      old-cfgs/networking.conf
  15. 13
      old-cfgs/place.conf
  16. 19
      old-cfgs/pluto-ssl.conf
  17. 12
      old-cfgs/pluto.conf
  18. 15
      old-cfgs/poem.conf
  19. 12
      old-cfgs/print.conf
  20. 8
      old-cfgs/probablyverifier.conf
  21. 5
      old-cfgs/recursion.conf
  22. 10
      old-cfgs/scan.conf
  23. 10
      old-cfgs/scheduler.conf
  24. 10
      old-cfgs/starwars.conf
  25. 7
      old-cfgs/talk.conf
  26. 15
      old-cfgs/talks.conf
  27. 12
      old-cfgs/tsdata.conf
  28. 6
      old-cfgs/waste.conf
  29. 12
      old-cfgs/wishlist.conf

44
old-cfgs/000-default-le-ssl.conf

@ -0,0 +1,44 @@
# Service: DubsDot (SSL)
<IfModule mod_ssl.c>
<VirtualHost *:443>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
SSLCertificateFile /etc/letsencrypt/live/dubsdot.cslabs.clarkson.edu/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/dubsdot.cslabs.clarkson.edu/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
<Directory /var/www/html/__export>
Options -Indexes
</Directory>
# Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "X-Requested-With, Content-Type, Origin, Authorization, Accept, Client-Security-Token, Accept-Encoding"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
</IfModule>

41
old-cfgs/000-default.conf

@ -0,0 +1,41 @@
# Service: DubsDot
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
RewriteEngine on
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
# Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "X-Requested-With, Content-Type, Origin, Authorization, Accept, Client-Security-Token, Accept-Encoding"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
<Directory /var/www/html/__export>
Options -Indexes
</Directory>
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

13
old-cfgs/browniepoints.conf

@ -0,0 +1,13 @@
# Service: browniepoints.cslabs
<VirtualHost *:80>
DocumentRoot "/var/www/browniepoints
ServerName browniepoints.cslabs.clarkson.edu
ServerAlias browniepoints.cosi.clarkson.edu
ServerAlias browniepoints
<Location />
Order deny,allow
Deny from all
# allow from only within COSI
Allow from 128.153.144.0/23
</Location>
</VirtualHost>

15
old-cfgs/clarkson.conf

@ -0,0 +1,15 @@
# Service: Clarkson!
<VirtualHost *:80>
DocumentRoot "/var/www/clarkson/internal.clarkson.edu"
ServerName clarkson.cslabs.clarkson.edu
ServerAlias clarkson.cosi.clarkson.edu
ServerAlias clarkson
ServerAlias clarkson.cslabs.clarkson.edu
ServerAlias clarkson.cosi.clarkson.edu
ServerAlias clarkson
<Location />
Order deny,allow
Deny from all
Allow from 128.153.0.0/16
</Location>
</VirtualHost>

139
old-cfgs/default-ssl.conf

@ -0,0 +1,139 @@
# Skip
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
# A self-signed (snakeoil) certificate can be created by installing
# the ssl-cert package. See
# /usr/share/doc/apache2/README.Debian.gz for more info.
# If both key and certificate are stored in the same file, only the
# SSLCertificateFile directive is needed.
SSLCertificateFile /etc/letsencrypt/live/dubsdot.cslabs.clarkson.edu/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/dubsdot.cslabs.clarkson.edu/privkey.pem
# Server Certificate Chain:
# Point SSLCertificateChainFile at a file containing the
# concatenation of PEM encoded CA certificates which form the
# certificate chain for the server certificate. Alternatively
# the referenced file can be the same as SSLCertificateFile
# when the CA certificates are directly appended to the server
# certificate for convinience.
#SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt
# Certificate Authority (CA):
# Set the CA certificate verification path where to find CA
# certificates for client authentication or alternatively one
# huge file containing all of them (file must be PEM encoded)
# Note: Inside SSLCACertificatePath you need hash symlinks
# to point to the certificate files. Use the provided
# Makefile to update the hash symlinks after changes.
#SSLCACertificatePath /etc/ssl/certs/
#SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt
# Certificate Revocation Lists (CRL):
# Set the CA revocation path where to find CA CRLs for client
# authentication or alternatively one huge file containing all
# of them (file must be PEM encoded)
# Note: Inside SSLCARevocationPath you need hash symlinks
# to point to the certificate files. Use the provided
# Makefile to update the hash symlinks after changes.
#SSLCARevocationPath /etc/apache2/ssl.crl/
#SSLCARevocationFile /etc/apache2/ssl.crl/ca-bundle.crl
# Client Authentication (Type):
# Client certificate verification type and depth. Types are
# none, optional, require and optional_no_ca. Depth is a
# number which specifies how deeply to verify the certificate
# issuer chain before deciding the certificate is not valid.
#SSLVerifyClient require
#SSLVerifyDepth 10
# SSL Engine Options:
# Set various options for the SSL engine.
# o FakeBasicAuth:
# Translate the client X.509 into a Basic Authorisation. This means that
# the standard Auth/DBMAuth methods can be used for access control. The
# user name is the `one line' version of the client's X.509 certificate.
# Note that no password is obtained from the user. Every entry in the user
# file needs this password: `xxj31ZMTZzkVA'.
# o ExportCertData:
# This exports two additional environment variables: SSL_CLIENT_CERT and
# SSL_SERVER_CERT. These contain the PEM-encoded certificates of the
# server (always existing) and the client (only existing when client
# authentication is used). This can be used to import the certificates
# into CGI scripts.
# o StdEnvVars:
# This exports the standard SSL/TLS related `SSL_*' environment variables.
# Per default this exportation is switched off for performance reasons,
# because the extraction step is an expensive operation and is usually
# useless for serving static content. So one usually enables the
# exportation for CGI and SSI requests only.
# o OptRenegotiate:
# This enables optimized SSL connection renegotiation handling when SSL
# directives are used in per-directory context.
#SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
# SSL Protocol Adjustments:
# The safe and default but still SSL/TLS standard compliant shutdown
# approach is that mod_ssl sends the close notify alert but doesn't wait for
# the close notify alert from client. When you need a different shutdown
# approach you can use one of the following variables:
# o ssl-unclean-shutdown:
# This forces an unclean shutdown when the connection is closed, i.e. no
# SSL close notify alert is send or allowed to received. This violates
# the SSL/TLS standard but is needed for some brain-dead browsers. Use
# this when you receive I/O errors because of the standard approach where
# mod_ssl sends the close notify alert.
# o ssl-accurate-shutdown:
# This forces an accurate shutdown when the connection is closed, i.e. a
# SSL close notify alert is send and mod_ssl waits for the close notify
# alert of the client. This is 100% SSL/TLS standard compliant, but in
# practice often causes hanging connections with brain-dead browsers. Use
# this only for browsers where you know that their SSL implementation
# works correctly.
# Notice: Most problems of broken clients are also related to the HTTP
# keep-alive facility, so you usually additionally want to disable
# keep-alive for those clients, too. Use variable "nokeepalive" for this.
# Similarly, one has to force some clients to use HTTP/1.0 to workaround
# their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
# "force-response-1.0" for this.
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
ServerName dubsdot.cosi.clarkson.edu
ServerAlias dubsdot.cslabs.clarkson.edu
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

7
old-cfgs/derpysayings.conf

@ -0,0 +1,7 @@
# Service: Derpy Sayings
<VirtualHost *:80>
DocumentRoot "/var/www/derpysayings"
ServerName derpysayings.cslabs.clarkson.edu
Header always set Access-Control-Allow-Origin "*"
</VirtualHost>

7
old-cfgs/dev.conf

@ -0,0 +1,7 @@
# Service: dev.cslabs.clarkson.edu
<VirtualHost *:80>
DocumentRoot "/var/www/dev"
ServerName dev.cslabs.clarkson.edu
ServerAlias dev.cosi.clarkson.edu
ServerAlias dev
</VirtualHost>

15
old-cfgs/fsuvius.conf

@ -0,0 +1,15 @@
<VirtualHost *:80>
ServerName fsuvius.cslabs.clarkson.edu
ServerAlias fsuvius.cosi.clarkson.edu
ServerAlias fsuvius
ServerAlias fsu.cslabs.clarkson.edu
ServerAlias fsu.cosi.clarkson.edu
ServerAlias fsu
WSGIScriptAlias / /var/www/fsuvius.wsgi
WSGIDaemonProcess fsuvius group=www-data threads=1 processes=1
WSGIProcessGroup fsuvius
<Directory /var/www/fsuvius>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

12
old-cfgs/grm.conf

@ -0,0 +1,12 @@
<VirtualHost *:80>
ServerName grm.cslabs.clarkson.edu
ServerAlias grm.cosi.clarkson.edu
ServerAlias grm
WSGIScriptAlias / /var/www/grm.wsgi
WSGIDaemonProcess grm group=www-data threads=1 processes=1
WSGIProcessGroup grm
<Directory /var/www/grm>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

5
old-cfgs/history.conf

@ -0,0 +1,5 @@
# Service: COSI History
<VirtualHost *:80>
DocumentRoot "/var/www/COSI-History"
ServerName history.cslabs.clarkson.edu
</VirtualHost>

13
old-cfgs/life.conf

@ -0,0 +1,13 @@
# Service: COSI Life
<VirtualHost *:80>
ServerName life.cslabs.clarkson.edu
ServerAlias life.cosi.clarkson.edu
ServerAlias life
WSGIScriptAlias / /var/www/life.wsgi
WSGIDaemonProcess life group=www-data threads=16 processes=1
WSGIProcessGroup life
<Directory /var/www/life>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

15
old-cfgs/login.conf

@ -0,0 +1,15 @@
<VirtualHost *:80>
ServerName login.cslabs.clarkson.edu
ServerAlias login.cosi.clarkson.edu
ServerAlias login
Options -Indexes
DocumentRoot "/var/www/login"
<Location />
Order deny,allow
Deny from all
Allow from 128.153.144.0/23
</Location>
</VirtualHost>

12
old-cfgs/mirrorstat.conf

@ -0,0 +1,12 @@
<VirtualHost *:80>
ServerName mirrorstat.cslabs.clarkson.edu
ServerAlias mirrorstat.cosi.clarkson.edu
ServerAlias mirrorstat
Options -Indexes
Header always set Access-Control-Allow-Origin "*"
ProxyPreserveHost on
ProxyPass / http://localhost:4000/
ProxyPassReverse / http://localhost:4000/
</VirtualHost>

5
old-cfgs/networking.conf

@ -0,0 +1,5 @@
# Service: CNRL
<VirtualHost *:80>
DocumentRoot "/var/www/networking"
ServerName cnrl.cslabs.clarkson.edu
</VirtualHost>

13
old-cfgs/place.conf

@ -0,0 +1,13 @@
# Service: COSI Place
<VirtualHost *:80>
ServerName place.cslabs.clarkson.edu
ServerAlias place.cosi.clarkson.edu
ServerAlias place
WSGIScriptAlias / /var/www/place.wsgi
WSGIDaemonProcess place group=www-data threads=16 processes=1
WSGIProcessGroup place
<Directory /var/www/place>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

19
old-cfgs/pluto-ssl.conf

@ -0,0 +1,19 @@
# Service: Pluto (SSL)
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName pluto.cslabs.clarkson.edu
ServerAlias pluto.cosi.clarkson.edu
ServerAlias pluto
WSGIScriptAlias / /var/www/pluto.wsgi
WSGIDaemonProcess pluto-ssl group=www-data threads=1 processes=1
WSGIProcessGroup pluto-ssl
<Directory /var/www/pluto>
Order allow,deny
Allow from all
</Directory>
SSLEngine on
SSLCertificateFile /etc/ssl/pluto_cert.pem
SSLCertificateKeyFile /etc/ssl/private/pluto_key.pem
</VirtualHost>
</IfModule>

12
old-cfgs/pluto.conf

@ -0,0 +1,12 @@
<VirtualHost *:80>
ServerName pluto.cslabs.clarkson.edu
ServerAlias pluto.cosi.clarkson.edu
ServerAlias pluto
WSGIScriptAlias / /var/www/pluto.wsgi
WSGIDaemonProcess pluto group=www-data threads=1 processes=1
WSGIProcessGroup pluto
<Directory /var/www/pluto>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

15
old-cfgs/poem.conf

@ -0,0 +1,15 @@
# Service: DDLC Poem Generator
<VirtualHost *:80>
DocumentRoot "/var/www/poem"
ServerName poem.cslabs.clarkson.edu
ServerAlias poem.cosi.clarkson.edu
ServerAlias poem
ServerAlias poem.cslabs.clarkson.edu
ServerAlias poem.cosi.clarkson.edu
ServerAlias poem
<Location />
Order deny,allow
Deny from all
Allow from 128.153.0.0/16
</Location>
</VirtualHost>

12
old-cfgs/print.conf

@ -0,0 +1,12 @@
<VirtualHost *:80>
ServerName print.cslabs.clarkson.edu
ServerAlias print.cosi.clarkson.edu
ServerAlias print
WSGIScriptAlias / /var/www/print.wsgi
WSGIDaemonProcess print group=www-data threads=1
WSGIProcessGroup print
<Directory /var/www/print>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

8
old-cfgs/probablyverifier.conf

@ -0,0 +1,8 @@
# Service: Probably Verifier
<VirtualHost *:80>
DocumentRoot "/var/www/probablyverifier"
ServerName probablyverifier.cslabs.clarkson.edu
<Directory /var/www/probablyverifier>
AllowOverride All
</Directory>
</VirtualHost>

5
old-cfgs/recursion.conf

@ -0,0 +1,5 @@
<VirtualHost *:80>
DocumentRoot "/var/www/recursion"
ServerName recursion.cslabs.clarkson.edu
ServerAlias *.recursion.cslabs.clarkson.edu
</VirtualHost>

10
old-cfgs/scan.conf

@ -0,0 +1,10 @@
<VirtualHost *:80>
ServerName scan.cslabs.clarkson.edu
ServerAlias scan.cosi.clarkson.edu
ServerAlias scan
Options -Indexes
ProxyPreserveHost on
ProxyPass / http://localhost:1337/
ProxyPassReverse / http://localhost:1337/
</VirtualHost>

10
old-cfgs/scheduler.conf

@ -0,0 +1,10 @@
<VirtualHost *:80>
ServerName scheduler.cslabs.clarkson.edu
ServerAlias scheduler.cosi.clarkson.edu
ServerAlias scheduler
Options -Indexes
ProxyPreserveHost on
ProxyPass / http://localhost:3001/
ProxyPassReverse / http://localhost:3001/
</VirtualHost>

10
old-cfgs/starwars.conf

@ -0,0 +1,10 @@
<VirtualHost *:80>
ServerName starwars.cslabs.clarkson.edu
ServerAlias starwars.cosi.clarkson.edu
ServerAlias starwars
DocumentRoot /var/www/StarWars
<Directory /var/www/StarWars>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

7
old-cfgs/talk.conf

@ -0,0 +1,7 @@
<VirtualHost *:80>
ServerName talk.cslabs.clarkson.edu
ServerAlias talk.cosi.clarkson.edu
ServerAlias talk
DocumentRoot "/var/www/talk"
</VirtualHost>

15
old-cfgs/talks.conf

@ -0,0 +1,15 @@
<VirtualHost *:80>
ServerName talks.cslabs.clarkson.edu
ServerAlias talks.cosi.clarkson.edu
ServerAlias talks
ServerAlias sklat.cslabs.clarkson.edu
ServerAlias sklat.cosi.clarkson.edu
ServerAlias sklat
Options -Indexes
Header always set Access-Control-Allow-Origin "*"
ProxyPreserveHost on
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</VirtualHost>

12
old-cfgs/tsdata.conf

@ -0,0 +1,12 @@
<VirtualHost *:80>
ServerName tsdata.cslabs.clarkson.edu
ServerAlias tsdata.cosi.clarkson.edu
ServerAlias tsdata
WSGIScriptAlias / /var/www/tsdata.wsgi
WSGIDaemonProcess tsdata group=www-data threads=1 processes=1
WSGIProcessGroup tsdata
<Directory /var/www/tsdata>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

6
old-cfgs/waste.conf

@ -0,0 +1,6 @@
<VirtualHost *:80>
DocumentRoot "/var/www/waste"
ServerName waste.cslabs.clarkson.edu
ServerAlias waste.cosi.clarkson.edu
ServerAlias waste
</VirtualHost>

12
old-cfgs/wishlist.conf

@ -0,0 +1,12 @@
<VirtualHost *:80>
ServerName wishlist.cslabs.clarkson.edu
ServerAlias wishlist.cosi.clarkson.edu
ServerAlias wishlist
Options -Indexes
DocumentRoot "/var/www/wishlist
ProxyPreserveHost on
ProxyPass /api http://localhost:8027
ProxyPassReverse /api http://localhost:8027
</VirtualHost>
Loading…
Cancel
Save