Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Configuring Apache....., conguring apache...
Hemant
post Dec 10 2003, 06:30 AM
Post #1


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



Hi..all...
for all of us who are using apache...(as a production level server or just a test server or using it in intranet)..

You can make apache to access user directories /home/hemant(for example) and webpages available there accessible to all...so in this way every user can have a website of his own....sounds cool...here goes method to accomplish this....
1.edit file /etc/conf/httpd.conf
and you will see a variable
UserDir=~/public_html
and next line enables this variable...uncomment both lines and make sure user directories are enabled..
2.now those users who wanted to have webpages of their own can create a directory ~/public_html and make it readable to all..
$ chmod 755 public_html

PS:i am posting this tip from a windows machine so i am not sure about location of file httpd.conf .


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies (1 - 6)
Termina
post Feb 18 2004, 10:38 AM
Post #2


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



So I assume you'd then type in "http://localhost/hemant" to see that users webpage?


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
chrisw
post Feb 18 2004, 11:23 AM
Post #3


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



i think it would be http://localhost/~username
could be wrong though...i dont allow users to have their own pages


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
Termina
post Feb 18 2004, 11:44 AM
Post #4


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



How would I stop certain files from being uploaded (or atelast accessed) with Apache (or uploading via SSH/FTP)

For example, I only want them to be able to upload .jpg, .png, .gif, .graal, .html, and .php pages (NO exe, zip, rar, avi, etc.)
Thanks in advance!


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
Hemant
post Apr 8 2004, 08:17 AM
Post #5


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



First..of all.to access the user dirctory it will be

http://localhost/~hemant(provided index.html file exists in the ~/public_html directory).

Now about the second question..file handling has to be handled...by php(or cgi).
you can easily write the php script...which will deny upload of certain files..

Or else..as a quick shot..you can use javascript...simply check the name of the file..that is being uploaded..and check for it's extension..and generate a warning and don't allow user to post that file.

If you want i can post the script...


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post
chrisw
post Apr 11 2004, 09:53 PM
Post #6


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



i have a good script that works great...ill have to hunt it down and provide a link for it or post it here...ill see if i can find it


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
Termina
post Jun 1 2004, 02:26 PM
Post #7


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



Thanks, I'd love that script. happy.gif


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd November 2017 - 11:03 PM