Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
Hi, people, it's been a while since I've posted here... I just installed Apache http server 2.0.54 on my mandrake linux 10.1 box (I am aware that it is now ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jan 2005
    Location
    Quebec, Canada
    Posts
    100

    A few n00b questions about apache


    Hi, people, it's been a while since I've posted here...
    I just installed Apache http server 2.0.54 on my mandrake linux 10.1 box (I am aware that it is now mandriva but I like mandrake better) I am able to start it, stop it and use most of the other commands.
    What want to know is where do you place your website on your computer (stop laughing) and how do you acsess your web page from other computers?
    Help,
    -->Nikosapi

  2. #2
    Just Joined!
    Join Date
    Jun 2005
    Posts
    21
    Hi...

    Usually it's in the path you installed it.. Mine is /var/htdocs/.. It can be /var/www/htdocs/, /usr/local/apache2/htdocs, etc.

    As for accessing from other computers... http://www.whatismyip.com And type in your IP addy in the search bar and it will bring your site up.

    Also, http://www.no-ip.com provides some ok sub domainnames... That should help ya.

  3. #3
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    Quote Originally Posted by Prohibited
    Hi...

    Usually it's in the path you installed it.
    but to make sure open httpd.conf (do a locate or find if you don't know where thats at) which is in the path you installed it and look for the DocumentRoot

    that should tell you exactly where its at, mine is /usr/local/apache2/htdocs

  4. #4
    Linux User stokes's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    274
    If you chose 'web server' during the Mandrake 10.1 setup, the path for your publicly visible files will be: /var/www/html

  5. #5
    Linux Newbie
    Join Date
    Jan 2005
    Location
    Quebec, Canada
    Posts
    100
    Thanks Guys! It's not fully up and running (html bugs ) but when it's up I'll post it.
    -->Nikosapi

  6. #6
    Linux Newbie
    Join Date
    Jan 2005
    Location
    Quebec, Canada
    Posts
    100
    ok, I've encountered some other problems, now that my web site is up and running, I can view it fine through my home network but say I were at a friend's house and I wanted to show off my crappy website?
    Here is how my network is set up:
    Code:
                               modem
                                  l
                               router 
               /             /          \               \
           comp 1    playstation       playstation      switch
                                                       /       \
                                                    comp2    server
    Lets pretend that whatismyip.com says that my ip is 123.456.789.001 and the router's ip is 192.168.0.1 and the server's ip is 192.168.0.101. What would I have to type into the address bar at my friend's house?

    -->Nikosapi

  7. #7
    Linux Newbie
    Join Date
    Jun 2005
    Posts
    181
    Set up your router to forward port 80 (there should be a pre-set WWW or similar rule to do so) to your server. Then you can just go straight to http://123.456.789.001, and you'll see your page.
    200mhz Pentium 1 with MMX, 128mb RAM, 10gb Seagate HDD. Beastly.

  8. #8
    Linux Newbie
    Join Date
    Jan 2005
    Location
    Quebec, Canada
    Posts
    100
    Yay! I got it working, it turn out that my router wasn't forwarding the port like you said. Now it works perfectly!
    Thanks guys,
    -->Nikosapi

  9. #9
    Linux Newbie
    Join Date
    Jan 2005
    Location
    Quebec, Canada
    Posts
    100
    Yay! I got it working, it turns out that my router wasn't forwarding the port like you said. Now it works perfectly!
    Thanks guys,
    -->Nikosapi

  10. #10
    Linux Newbie
    Join Date
    Jan 2005
    Location
    Quebec, Canada
    Posts
    100
    So, I've got my http server running but there's some "sesitive" files that I would like only people I know to access it. As I was flipping through the apache user guide (700 pages!!!) I came across the part that talks about Authentication and Authorization (ch. 6.2). It says to make a password folder, which I did. then I ran htpasswd and created a password file. After that I created a file named .htaccess that included:
    Code:
    AuthType Basic
    AuthName "Members"
    AuthUserFile /usr/local/apache2/passwd/passwords
    Require valid-username
    I placed the file in the folder that I wished to protect. When I accessed the folder from another computer it didn't ask for a password!
    What am I doing wrong?
    -->Nikosapi

Page 1 of 2 1 2 LastLast

Posting Permissions

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