www.mydomain.com works,-- mydomain.com does not

Discussion in 'HOWTO-Related Questions' started by Al1937, Aug 24, 2009.

  1. Al1937

    Al1937 New Member

    I have a Custon DNS with Dyndns.com. ( bingftp.com )

    I asked a friend to browse to both www.bingftp.com
    and also bingftp.com using his home computer.

    www.bingftp.com came up with a page saying "IT WORKS!


    bingftp.com came up with
    Forbidden
    You don't have permission to access / on this server.

    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch mod_ssl/2.2.11 OpenSSL/0.9.8g Server at bingftp.com Port 80
    -----------------------------------------------------------------------------------------------------------------------------
    I get the same results uing my networked computer.

    Is this normal?
    and
    How do I get my webpage to come up instead of "IT WORKS!"

    Please have patience. I am a TOTAL newbe at this.



    I just asked my friend to bring up www.mydomain.com/webmail
    and www.mydomain.com:8080
    and both squirrelmail and Ispconfig both came up on his computer!!
    Is this what is supposed to happen?
     
    Last edited: Aug 24, 2009
  2. matey

    matey New Member

    the It Works message is in your index.html file under /var/www/
    you can change it or edit it. bcs index.html is the first thing it loads by default.

    then I think there is a folder under /etc/ apache2/ which has the sites enable and site available, may be the site that does not come up is not mentioned in there or is not linked some of the files and folders are links under ..apache2.
     
  3. Al1937

    Al1937 New Member

    how do i edit the contents of var/www.
    vi /etc/var/www says no such file.
     
  4. matey

    matey New Member

    I think it is called index.html
    you can either use vi or pico to edit /var/www/index.html

    I used google to find an html coding site which shows you how to create your own web page.
    I cant remember the site I used but there are many good ones.
    it is basically like a text file except uses html type of codes.
    You can go up to your browser and click on View then Page Source (if you're using firefox for instance) to get an idea. In fact you can copy some of the codes from the source to your own index.html file and play around with it as I did.
    In fact you can open your own existing web page and look at the codes..(not much except it says It Works!) but you see how the made it bold...

    I even inserted pictures in my web page, but I had to copy the pics into my www folder for them to work.
    I am sure there are better ways like putting the address/link of the picture files into your html codes and making them work but I am not that good at it lol i am kind of a noob (to linux and html stuff) myself.
    I hope this helps and/or someone with experience can help.
     
    Last edited: Aug 26, 2009
  5. Al1937

    Al1937 New Member

    All this time I thought I had to use vi /etc/var/www to edit the file. Your post was very helpful. I used vi /var/www and got it to work. Thank you. I am new to linux
     
  6. Al1937

    Al1937 New Member

    All the problems in this post have been resolved.

    I still have one question:

    I just asked my friend to bring up www.mydomain.com/webmail
    and www.mydomain.com:8080
    and both squirrelmail and Ispconfig both came up on his computer!!
    Is this what is supposed to happen?
     

Share This Page