Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th July 2021
invicta invicta is offline
Port Guard
Join Date: Jul 2021
Posts: 16
Default problem setting up webserver with httpd

hello i have a problem setting up a webserver with httpd. my httpd.conf file has this line

root /htdocs/tolkienclub.art
so that it can acess the index .html file here

heres the full part of my conf file
server tolkienclub.art {
          listen on $ext_ip port 80
          root /htdocs/tolkienclub.art
it will not run with this and gives me a syntax error on the root /htdocs/ line. when i take it off and start it my website reads 403 error. what is the correct way to do this? thanks for any help
Reply With Quote
  #2   (View Single Post)  
Old 16th July 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
Join Date: May 2008
Location: USA
Posts: 7,416

Escape the string with quotes, such as root "/htdocs/tolkienclub.art"

Per the httpd.conf(5) man page:
Argument names not beginning with a letter, digit, or underscore must be quoted.
And for my sanity, I just quote every string.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing apache-httpd-2.4.23 on OpenBSD 6.0-current lobueb OpenBSD Packages and Ports 5 28th September 2016 05:09 PM
Problem setting up a multiport router!! npumcrisz OpenBSD General 2 1st April 2012 03:06 PM
Problem setting up perl modules badguy OpenBSD Installation and Upgrading 4 10th August 2009 09:46 PM
httpd problem or something else c0mrade Other BSD and UNIX/UNIX-like 6 15th January 2009 09:19 PM
Samba 3.0 problem to setting up private folder - FreeBSD 71-pre bsduser FreeBSD General 7 27th September 2008 03:34 PM

All times are GMT. The time now is 04:49 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick