Hi
@selhan, congratulations on getting
www/apache24 up and running on your FreeBSD system. Did you find the
Apache HTTP server documentation? Your Apache configuration file can be found at
/usr/local/etc/apache24/httpd.conf; this is what you need to edit to configure Apache.
If you want someone elsewhere on the Internet to be able to type "www.yourdomain.com" into their browser's address bar and reach your website, then you need to change the
Domain Name System (DNS) records for your domain. This isn't a setting on your system, but a setting on the DNS server for your domain. The DNS server is likely owned and controlled by the company from whom you bought your domain name. That company should have instructions on how to configure the DNS records on their server. If you tell us which domain registrar you used, we may be able to point you to right place on their website. You need to set up an "A" record that points "www.yourdomain.com" to the public IP address of your server.
In your post you mentioned that you had set up
NAT port forwarding from your external router to your server's internal IP address, which you gave as being in the 192.168.0.0/16
private address range. The IP address you enter as the record must be the public IP address of your external router (not something that looks like 192.168.x.x). This address must also be static (that is, not changing) if you want people to continue to access your website. You will likely know whether you have a static public IP address for your router. Particularly for home broadband connections, most Internet Service Providers (ISP) provide dynamic IP addresses. It is still possible, but more fiddly, to host a website on a dynamic public IP address using a
Dynamic DNS service provided by a company like
DynIP.com (a web search for "dynamic dns" will show many alternative companies).