Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adampaulukanis/e16cf0872c47e18957bfc0fb356b5c11 to your computer and use it in GitHub Desktop.
Save adampaulukanis/e16cf0872c47e18957bfc0fb356b5c11 to your computer and use it in GitHub Desktop.
/etc
interface "rum0" {
send host-name "www";
fixed-address 192.168.1.123;
}
nwid JESIOTRY
wpakey HASŁO
dhcp
# $OpenBSD: httpd.conf,v 1.18 2018/03/23 11:36:41 florian Exp $
server "default" {
listen on "192.168.1.123" port 80
root "/htdocs/testowaStrona"
log syslog
}
server "jesiotry.ddns.net" {
listen on "192.168.1.123" port 80
root "/htdocs/jesiotry.ddns.net"
log syslog
location "*.php" {
fastcgi socket "/run/php-fpm.sock"
}
}
# when you try to hit the web server using IP address
server "192.168.1.123" {
# only accessible from my localnetwork
listen on "192.168.1.123" port 80
root "/htdocs"
log syslog
}
server "192.168.1.222" {
# upload server
listen on "192.168.1.222" port 80
root "/htdocs/upload"
directory auto index
location "*.php" {
fastcgi socket "/run/php-fpm.sock"
}
connection { max request body 88388608 }
log syslog
}
server "*.*.*.*" {
# I do not know what is this all about and send them away ;-)
listen on "192.168.1.123" port 80
block return 301 "http://google.pl?q=$REQUEST_URI"
log syslog
}
/etc/X11/xorg.conf.d
/usr/distfiles
/usr/packages
/var/git
Section "InputClass"
Identifier "system-keyboard"
Option "XkbLayout" "gb,pl"
Option "XkbOptions" "grp:caps_toggle"
EndSection
Section "Extensions"
Option "DPMS" "true"
EndSection
Section "ServerLayout"
Identifier "ServerLayout0"
Option "StandbyTime" "10"
Option "SuspendTime" "20"
Option "OffTime" "30"
EndSection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment