Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modification to permit subdomains #54

Closed
radarjd opened this issue Jan 27, 2021 · 1 comment
Closed

modification to permit subdomains #54

radarjd opened this issue Jan 27, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@radarjd
Copy link

radarjd commented Jan 27, 2021

A quick modification would permit any subdomains of pi.alert to direct properly in lighttpd.

If you change install/pialert_front.conf to:

# ------------------------------------------------------------------------------
#  Pi.Alert
#  Open Source Network Guard / WIFI & LAN intrusion detector
#
#  index.html - Redirect file to pialert subdirectory
# ------------------------------------------------------------------------------
#  Puche 2021        pi.alert.application@gmail.com        GNU GPLv3
# ------------------------------------------------------------------------------

$HTTP["host"] =~ "pi\.alert" {
  server.document-root = "/var/www/html/pialert/"
}

Some web browsers like to prepend "www" to domains and this might help.

radarjd added a commit to radarjd/Pi.Alert that referenced this issue Jan 29, 2021
causes lighttpd to match any subdomain of pi.alert (e.g. www.pi.alert) to this virtual server

this addresses issue pucherot#54
@pucherot pucherot self-assigned this Feb 1, 2021
@pucherot pucherot added enhancement New feature or request WIP Work in progress labels Feb 1, 2021
@pucherot pucherot removed the WIP Work in progress label Apr 12, 2021
@pucherot
Copy link
Owner

Sorry, but I think this is not necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants