Daniel's Weblog
Posts About
Tags Colophon

Tags / Posts

Web Server Settings

Some config settings, nothing crazy but it took me a while to figure out.

Ubuntu 17.10
Artful Aardvark

Exposed Services:

Grafana: https://danielbeadle.net/stats

Virtual Radar Server (VRS): https://danielbeadle.net/radar

Grafana:

The important details of /etc/grafana/grafana.ini:

[server]
protocol = http
http_port = 3000
domain = danielbeadle.net
root_url = http://danielbeadle.net/stats

Apache:

/etc/apache2/sites-enabled/danielbeadle.net.conf:

TODO*: This doesn’t properly redirect HTTP requests to HTTPS.*

<VirtualHost [DOMAIN_NAME]:80>
    ServerName [DOMAIN_NAME]
    DocumentRoot [WEBSITE_PATH]
</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost [DOMAIN_NAME]:443>
    ServerName [DOMAIN_NAME]

    ServerAdmin [EMAIL]
    DocumentRoot [WEBSITE_PATH]

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /blog [BLOG_PATH]
    <Directory [BLOG_PATH]>
        Options MultiViews Indexes Includes FollowSymLinks ExecCGI
        AllowOverride All
        Require all granted
        allow from all
    </Directory>
    
    # Reverse Proxy to Grafana:
    ProxyPass /stats http://localhost:3000
    
    # Reverse Proxy to Virtual Radar Server
    ProxyPass /radar http://danielbeadle.net:8080/VirtualRadar

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]

# Letsencrypt files for HTTPS:
SSLCertificateFile [path to fullchain.pem]
SSLCertificateKeyFile [path to privkey.pem]
Include [path to options-ssl-apache.conf]
</VirtualHost>
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Lehigh Links

General Reference:

Roomfinder:

A map of all the building and rooms on campus with a search tool. https://gisweb2.cc.lehigh.edu/roomfinder/default.aspx

Computer Lab usage

Want to see if there’s any free space in a computer lab? http://cf.lehigh.edu/pubsite/

https://lts.lehigh.edu/services/explanation/print-email-lts-printers

Listserv

https://lists.lehigh.edu/mailman/listinfo/

Public Google Calendars:

Lehigh calendars that you can add to your own calendars! http://lts.lehigh.edu/services/explanation/lehigh-pubilc-calendars-google-apps-help

Media:

Flickr Pages

Lehigh University:

https://www.flickr.com/photos/lehighuniversity

Lehigh Engineering:

https://www.flickr.com/photos/lehighengineering

Special Collections:

https://www.flickr.com/photos/143267113@N08

Baker Institute:

https://www.flickr.com/photos/lehighbakerinstitute

Tumblr:

Scenes from South Mountain:

http://lehighu.tumblr.com

Twitter:

Twitter list of Lehigh University Colleges, People, Orgs, etc:

https://twitter.com/djbeadle/lists/lehigh-orgs-and-people

News:

Greek Life Blog:

http://lehighgreeks.blogspot.com

Interesting Network Stuff:

Lehigh Grafana

https://grafana.cc.lehigh.edu

The Server of Moria

http://moria.cse.lehigh.edu

Lehigh Network Information Page

More info about Lehigh’s network setup than you ever wanted to know, including some good photos of network hardware in the various buildings over the years. http://www.lehigh.edu/~insna/

Lehigh Network Statistics

Want to know the total traffic going in and out of Lehigh’s network? The number of users on the VPN? The average age of Cisco switches? Must be on the Lehigh network to access. https://rover.cc.lehigh.edu/network/

Wireless Network Statistics by Building

https://ss.cc.lehigh.edu/woc/

Other:

Info on Phones

If you dial “0” on the dorm phones during business hours and ask the operator “What phone number am I calling from?” they’ll tell you. https://rover.cc.lehigh.edu/extensions.txt

Lost Forest Map:

https://www.google.com/maps/d/u/0/viewer?mid=15I-WbirRcVLeIWGlnR2eXQRlr7E&ll=40.59645280422191%2C-75.37894257355651&z=17