DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd February 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default first steps toward an OpenBSD Apache server ..

Hi verybody !

Maybe it is too soon for a newbie to think of setting up an apache web server ..
in fact it won't be a dynamic php web server for example ...but rather a just a simple static miniwebsite .. what's important for me now is the big picture .. how things work together .. how to implement ssl .. what should be added to pf.conf as rules .. dynamic ip (??) etc ..
Do I need a fully qualified domain name ?? I hope not ..

Hopefully some of my benevolent teachers show me the way through ..

Thanks All !
Reply With Quote
  #2   (View Single Post)  
Old 22nd February 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by daemonfowl View Post
Do I need a fully qualified domain name ?? I hope not ..
  • If your goal is to construct an intranet with no connection to the Internet, the answer is "no".
  • If your goal is to connect to the Internet, the answer is "yes".

Last edited by ocicat; 22nd February 2012 at 06:33 AM.
Reply With Quote
  #3   (View Single Post)  
Old 22nd February 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

At 5.0-release, the built-in Apache server can be started with nothing more than adding a line to /etc/rc.conf.local, and rebooting:
Code:
httpd_flags=""
This server's files all live in /var/www. Should you ever want to go beyond serving static web pages, read FAQ 10.16.
Reply With Quote
  #4   (View Single Post)  
Old 22nd February 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Thanks Ocicat ! Thanks Jgimmi !
you've always been of nice help ..
I added the httpd_flags line then did a {sudo apachectl restart} and {lynx localhost} .. it worked :-) ..

starting from the easier .. the intranet .. what else should I set up so other machines within my home network can surf my local miniweb ? download files ..
I am reading the chrooting faq .. new to me ..
Reply With Quote
  #5   (View Single Post)  
Old 22nd February 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by daemonfowl View Post
what else should I set up so other machines within my home network can surf my local miniweb ?
You have a choice when it comes to name resolution:
  • DNS
  • /etc/hosts which is covered in the hosts(5) manpage.
Given that you have settled on an intranet, I would suggest the latter. The point here is to be able to specify machines by name instead of IP address.
Reply With Quote
  #6   (View Single Post)  
Old 23rd February 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

thanks .. I've read the hosts man page then added this line and changed the htdocs index :

192.168.1.3 volla host1

either $ lynx post1 .. or $ lynx volla .. it shows the new index ..
how about a real apache serving the world ?
I bet I need to register somewhere to use noip or something .. how do I set a qualified domain name please ?
Reply With Quote
  #7   (View Single Post)  
Old 23rd February 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

Quote:
Originally Posted by daemonfowl View Post
. how do I set a qualified domain name please ?
There are many companies that offer domain name management services for Internet users who's IP addresses are dynamic. Some services may be free, some may require a fee.

You might find it helpful to spend a short time with your favorite Internet search engine.
Reply With Quote
  #8   (View Single Post)  
Old 23rd February 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

I meant the OS settings part not the registration part .. the former is most important .. the latter I found some quick visual guides on youtube ..
Thanks @Jgimmi .. for anything you suggest ..
Reply With Quote
  #9   (View Single Post)  
Old 23rd February 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by daemonfowl View Post
I meant the OS settings part not the registration part
Once a domain name has been registered, the next step is to set up an authoritative DNS server.

Study the nsd(8) manpage. However DNS is an involved topic. You should spend time researching the topic. If you are going to be connecting systems to the Internet in such a permanent manner, you really need to understand what you are doing. At a minimum, this is being a responsible netizen.

Last edited by ocicat; 23rd February 2012 at 12:25 PM.
Reply With Quote
Old 23rd February 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

I definitely agree .. although I've got no website ready .. the thing is , I believe in understanding by practising ..
Q : once connected .. will it have consequences in case you want to unregister the domain ? I hope there won't be rigid rules in the supposedly free/open net ..
Reply With Quote
Old 23rd February 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

I wasn't thinking of daemonfowl operating a local domain name server; I was thinking of an external service that would provide a domain name for daemonfowl's externally facing internet address. There are a number of vendors, such as dnspark, dyndns, easydns ... I'm sure there are more.

There are a couple of tools available to inform the service of an IP address change. I use net/ddclient.
Reply With Quote
Reply

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
Tool causes Apache web server to freeze J65nko News 1 25th August 2011 12:00 AM
First steps in Web Development Daffy Programming 1 26th November 2010 04:01 PM
Apache HTTP Server 1.3.42 Released J65nko News 1 5th February 2010 02:47 AM
can not star Apache web server. bsdnewbie999 OpenBSD General 21 4th April 2009 07:18 AM
Few questions about server(openSSH, apache ,) latorion FreeBSD General 10 11th August 2008 06:59 PM


All times are GMT. The time now is 03:48 AM.


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