Results 1 to 3 of 3

Thread: Sites-available ?

  1. #1
    Join Date
    Aug 2012
    Beans
    50

    Angry Sites-available ?

    Hello Ubuntu guru's.

    Configuring a site to shorten the URL is not working as it should.
    I'am trying to add smokeping to the sites available and then activate it with a2ensite Smokeping.
    After that I reload Apache2 and try to reach the site(smokeping/) but it does not work.

    Config:
    <VirtualHost *:80>
    ServerAdmin support@abc.nl
    Servername smokeping.abc.nl
    ServerAlias smokeping smokeping.abc.local
    Documentroot /usr/share/smokeping/www
    Redirect http://smokeping.abc.nl http://smokeping.abc.nl/smokeping
    </VirtualHost>

    Iam not sure about the Document root. Is there a specific file in the Document root so I can identify the folder as Document root?
    And I have been looking for a index.php index.html etc... But couldn't find any.

    Thanks in advance!
    Last edited by MocroNL; March 1st, 2013 at 12:31 PM.

  2. #2
    Join Date
    Jan 2011
    Beans
    132

    Re: Sites-available ?

    Try this tutorial and see if this doesn't work:

    https://www.digitalocean.com/communi...untu-12-04-lts

    I did not try it myself so I have no idea if this will work or not.
    Last edited by ranger12; March 2nd, 2013 at 02:45 AM.

  3. #3
    Join Date
    Nov 2010
    Location
    Kerala
    Beans
    376
    Distro
    Ubuntu

    Re: Sites-available ?

    Quote Originally Posted by ranger12 View Post
    Try this tutorial and see if this doesn't work:

    https://www.digitalocean.com/communi...untu-12-04-lts

    I did not try it myself so I have no idea if this will work or not.
    You pointing good answer to him I followed this one when i start to learn virtual host , But understand that I need to learn more about this , I have question to you friend MocroNL why the "redirect" is using on virtual host file
    you can learn what is computer ubuntu is the best way .I start learning ubuntu in 2-1-2010 .start with UBUNTU 9 now using 12.04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •