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.
- 06-27-2005 #1Linux 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
- 06-27-2005 #2Just 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.
- 06-28-2005 #3but 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
Originally Posted by Prohibited
that should tell you exactly where its at, mine is /usr/local/apache2/htdocs
- 06-28-2005 #4
If you chose 'web server' during the Mandrake 10.1 setup, the path for your publicly visible files will be: /var/www/html
- 06-28-2005 #5Linux 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
- 06-29-2005 #6Linux 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:
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?Code:modem l router / / \ \ comp 1 playstation playstation switch / \ comp2 server
-->Nikosapi
- 06-29-2005 #7Linux 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.
- 06-29-2005 #8Linux 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
- 06-29-2005 #9Linux 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
- 06-30-2005 #10Linux 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:
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!Code:AuthType Basic AuthName "Members" AuthUserFile /usr/local/apache2/passwd/passwords Require valid-username
What am I doing wrong?
-->Nikosapi


Reply With Quote
