https://github.com/bor0/dotfiles
My dotfiles
https://github.com/bor0/dotfiles
dotfiles python
Last synced: about 1 month ago
JSON representation
My dotfiles
- Host: GitHub
- URL: https://github.com/bor0/dotfiles
- Owner: bor0
- Created: 2017-03-05T17:31:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T00:36:18.000Z (over 1 year ago)
- Last Synced: 2025-05-16T05:38:32.691Z (about 1 year ago)
- Topics: dotfiles, python
- Language: Python
- Size: 124 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-SSL.md
Awesome Lists containing this project
README
# Local SSL websites on Mac OSX with Apache
First we start by generating the certificate files:
```
openssl req \
-newkey rsa:2048 -nodes -keyout server.key \
-x509 -days 365 -out server.crt
```
Afterwards, in `httpd.conf`, uncomment:
```
LoadModule ssl_module lib/httpd/modules/mod_ssl.so
```
Now, in addition to the existing:
```
Listen 8080
ServerName localhost
DocumentRoot /usr/local/var/www/htdocs/
```
Add:
```
Listen 8080
Listen 8081
ServerName localhostsafe
DocumentRoot /usr/local/var/www/htdocs/ssl
SSLEngine on
SSLCertificateFile /usr/local/etc/httpd_ssl/server.crt
SSLCertificateKeyFile /usr/local/etc/httpd_ssl/server.key
```
The reason we bind to 8081 is so that it doesn't require root access.
Now, whenever you want to enable HTTPS on the default port, you just do:
`sudo socat tcp-listen:443,reuseaddr,fork tcp:localhost:8081`
Boro Sitnikovski