Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello all. I have recently installed Mandrake 8.2. Everything installed great, and my apache web server is running great. So here's the problem..... I've created a user name, and a home directory for my friend, Ben, to telnet to, wich works fine also. I wanted to create a directory in his home directory where he could store webpages that would show up in a browser when you typed in: "www.myserver.com/ben/index.html".
So.... I created a directory called 'www' in his home directory (/home/ben/). And in the httpd.conf file i've included:
Alias /ben/ /home/ben/www
<Directory /home/ben/www>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Whenever I try to view www.myserver.com/ben/index.html, I get Forbidden
You don't have permission to access /ben/index.html on this server.
I've been trying for day now to get this working myself, but I think i've run out of ideas.
Please, please, please.... help this poor soul.
I'll give you an E effort
What you actaully want to do change is the UserDir releated
directives? That why on the off change you have more than one friend all they have to do is create a public_html directory in thier home dir?
Of course if you were really their friend you would set
up a subdomain or maybe even full virtual domain for them ............. Cool Beans
I chmod'd 777 /home/ben/www, which i wasn't sure if I was supposed to do that, but it didn't help anyway. I was going to look into the userdir thing, but I just thought that I could set up any directory outside of the Document Root with Alias, Am i wrong? Thanks for replying to my post though. I guess I will see if I can learn how to do the Virtual domain thing. :-)
I just wanted to say thanks to pickledbeans, the userdir worked like a charm, and was easy to config. :-)
Also, i've finally found my error logs, and have noticed something wierd. There are numerous error listed with clients trying to access directories like:
/www/html/winnt/system32/cmd.exe
and /www/html/scripts/root.exe
ok, i've got a new problem....... I had my users servers working yesterday, but now the permissions to my home directories have reset themselves?!?!? I don't know, if this is some sort of security thing or what, but everytime I chmod the home directories they work, then a couple of hours later, something resets them back so that access is forbidden. I hope someone knows what files I need to tweak to fix this. Help would be much appreciated.
I've pointed my domains at my external IP and on my firewall machine, I have Port 80 Forwarding set up to go to the apache server.
The way I see it, once forwarded through the firewall, apache should look at the Requested URL and forward the browser towards the relevant "Virtual Server" and its directory on the server... Have I got it straight or am I missing something?
If, so... Why in hell is it not working?!?
Is it 'cos I am trying to test it from the inside?
I have the default install of Mandrake 8.2 with apache. I use an IP Cop firewall. I have used the Webin system to administer the Mandrake PC (namely the apache bits)...
Any help is greatly appreciated and any more details, just ask ;-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.