Up
Home
Twit
Down
Close Panel

Having your own web server has it’s advantages and disadvantages one of those disadvantages being that the responsibility of correctly configuring all the system features fall on the owner. So in my efforts to keep my web server alive I run across quite a few problems. So I have decide to document them in hopes of saving someone else some time. This article in no way covers all aspects of setting up multiple sites on one server but it is one option.

So today I want to talk about Apache’s NameVirtualHost directive which will allow you to set up multiple sites on one web server. Basically you are just telling Apache that when someone asks for a certain domain name on your server that they get the files in the directory you want them to.

I will assume you have a “www” directory if not you can just make one with mkdir as shown in the code below.

So we will start by adding a few new directories under “www” open a terminal and type the following.

me@myserver:~$ sudo mkdir /home/www/www.example.com
me@myserver:~$ sudo mkdir /home/www/www.example.com/log
me@myserver:~$ sudo mkdir /home/www/www.example.com/htdocs
me@myserver:~$ sudo mkdir /home/www/www.example.com/cgi-bin

me@myserver:~$ sudo mkdir /home/www/www.secondexample.com
me@myserver:~$ sudo mkdir /home/www/www.secondexample.com/log
me@myserver:~$ sudo mkdir /home/www/www.secondexample.com/htdocs
me@myserver:~$ sudo mkdir /home/www/www.secondexample.com/cgi-bin


ButtonRead The Rest ButtonDiscussion

17

Nov

2009

Smooth Scroll Using Mootools1.2

By Jamin. Posted in Mootools | No Comments »

Here is something that every blog should have. Whether its a really long blog or you just like to show twenty post on your home page, using the scroll bar sucks.Anyway here is the good stuff.

What you will need…

  • Mootools (Use mine.)
  • Text Editor (Notepad works just fine.)
  • The HTML

    <div id="top"></div>   //the div to be scrolled to.
    
    <a href="#top">To The Top!</a>   //the link to get you there
    

    Pretty simple the href inside the anchor tag depicts the <div> on the page the link will scroll to all you have to do is add this tag “#” in front of it. In this situation when the link is clicked we will be scrolled to the <div> with the id=”top” tag…


    ButtonRead The Rest ButtonDiscussion

    6

    Nov

    2009

    Blender Character

    By Jamin. Posted in Blender | 1 Comment »

    Hawk

    Check out this character I just made in Blender. Its a free program that alows you to be up there with big boys when it comes to making animations as well as many many other things. Basically I followed a tutorial you can find HERE. I have never used the program before and I manged to make this character in about a days worth of time. The tutorial will teach you how to start with nothing and end up with a  animation of whatever character you decide to make on the way. You will also be taught how to apply bump maps (basically textures) to different surfaces. As you go you will learn how to rig up your character in…


    ButtonRead The Rest ButtonDiscussion

    Falling ApartThis is honestly how I feel. No matter what you do to prepare or how much planning goes into something, sometimes its just not going to work out the way it should. This isnt the worst thing ever but sometimes, just sometimes I wish everything would just fall into place. What it seems like to me is that the things you need to work out the most are generally the ones that fall through and things that dont even matter work out better than expected. With that said I hope anyone who reads this has at least one thing in the upcoming weeks work out for them. I know I could use it.


    ButtonRead The Rest ButtonDiscussion
    ButtonBack To Top