Find the answer to your Linux question:
Results 1 to 3 of 3
i have my apache running. i tested it from the command line, and the browser. now how do i create a webpage. i know html very well, but i dont ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Oct 2005
    Posts
    110

    help with /var/www/html/


    i have my apache running. i tested it from the command line, and the browser. now how do i create a webpage. i know html very well, but i dont where to insert it and where to save the webpages.

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    find the document root (I think /var/www/html in your case, but in others it can be /var/www/htdocs), and put the website in that dicectory, and make one file named index.html (or symlink index.html to another file) and this will be the file seen when you go to the / of your site, e.g. www.foo-bar.org
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,932
    Your apache servers httpd.conf file will tell you where the document root is, it gets declared near the top normally.
    Linux user #126863 - see http://linuxcounter.net/

  4. $spacer_open
    $spacer_close

Posting Permissions

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