Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I am not sure what term to use here and not sure how to achieve it. Virtual host, alias, something else?
I have a freeBSD system as a local web server. I run Dokuwiki on it and mess around with Drupal/Joomla on it. I used Dokuwiki to keep hold my notes in it(projects, shopping list, etc). Now my kiddo's wants their places to keep their own notes. So I said sure.
Right now I have everything located here:
/usr/local/www/apache24/data/dokuwiki
/usr/local/www/apache24/data/drupal7
/usr/local/www/apache24/data/joomla36
What I am thinking I want to do is have it..
/usr/local/www/my_stuff
/usr/local/www/kiddo's_stuff
/usr/local/www/kiddo2's_stuff
You could just point the main apache instance at /usr/local/www for it's document root and it'd all work. Just have apache set to listen on *:80 or 10.1.1.13:80
if you want to create vhosts, then you'd need the first loaded vhost to be the one that points to /usr/local/www and instead of a listen directive, you declare the listen in the vhost directive itself.
Last edited by r3sistance; 02-20-2017 at 03:20 PM.
Yeah, an extra virtual host does not seem to be needed, the regular DocumentRoot would work. If you want a little fancier, maybe mod_userdir is in order.
raksasas, is your concern with privacy (can't access each other's notes) or with a convenient way of typing e.g. name.server.com?
or both?
or something else?
raksasas, is your concern with privacy (can't access each other's notes) or with a convenient way of typing e.g. name.server.com?
or both?
or something else?
Some of all of it.
Privacy - yes and no
Convenience - yeah.
Organizing the files
Hands on learning experience for me and the kiddos - Primary reason. Kind of the reason why I am avoiding the easy route of just changing the Apache "Document Root". I can read the stuff all day long but I have a very hard time grasping it until I do it.
Moving on. I have gotten the virtual host working but I have lost access to the stuff in /usr/local/www/apache24/data/. I am thinking it is because the both vhost is pointing to
Code:
/usr/local/www/my_stuff/
and not the /
Code:
usr/local/www/apache24/data/
Also, How do it get access to the stuff by IP if my DNS server goes down? My dns records both point to 10.1.1.13
I have gotten the virtual host working but I have lost access to the stuff in /usr/local/www/apache24/data/. I am thinking it is because all my vhost is pointing to
Now to figure out how to access the stuff if my DNS server happens to go down with out editing the local host file on my systems.
mystuff.webserver
kiddo1.webserver
kiddo2.webserver
[Now to figure out how to access the stuff if my DNS server happens to go down with out editing the local host file on my systems.[/quote]I use dnsmasq to resolve all internal names, and configure dnsmasq to forward all unmatched requests on to the internet DNS server (google in my case). Everything on my internal lan web server remains working even if the entire internet goes out.
[Now to figure out how to access the stuff if my DNS server happens to go down with out editing the local host file on my systems.
I use dnsmasq to resolve all internal names, and configure dnsmasq to forward all unmatched requests on to the internet DNS server (google in my case). Everything on my internal lan web server remains working even if the entire internet goes out.[/QUOTE]
I have a local DNS server with forwarders to openDNS.
Locally I have some A records:
mystuff.webserver -> 10.1.1.13
kiddo1.webserver -> 10.1.1.13
kiddo2.webserver -> 10.1.1.13
If it it is unresponsive,crashed,off, etc is there a way to access those locations without having to maintain the host file on all my systems?
Quote:
Originally Posted by Turbocapitalist
That's a very unusual place for Apache to be pointing to for DocumentRoot. Usually the web material is kept under /var/www/something
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.