LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Getting apache configured for "~" for user directories (https://www.linuxquestions.org/questions/linux-server-73/getting-apache-configured-for-%7E-for-user-directories-543120/)

Alotau 04-03-2007 07:00 PM

Getting apache configured for "~" for user directories
 
Hi all,

I am pretty new at this. I have a Linux box at home running apache, hosting a website through my DSL connection. Everything more or less works. I invited a friend to use this webspace and created an account for him. Now I know at school, my personal webpage is accessed via www.school.edu/~myname . So in my home directory I have a public_html folder and have my pages in there. How do I get this set up on my system because it doesn't work right now?

Again, the regular site works fine. Everything lives in /var/www/html/ with no problems. I know that I can make a folder for my friend in there, but was hoping to keep him in his home directory (as it should be for guest users, right?). So say his name is 'fred', I'd like www.mysite.com/~fred to work by finding a public_html folder in /home/fred/.

If you need any further details, just let me know. You may need to tell me how to get those details for you! Any advice appreciated.

gilead 04-03-2007 07:07 PM

Have you had a look through the howto at http://httpd.apache.org/docs/2.0/howto/public_html.html yet? It should cover everything you need to get it running - if not, can you tell us what problems you've had so far in setting it up?

Alotau 04-03-2007 07:20 PM

Great! That is the kind of pointer I needed. If I am still lost, I'll post again. Thanks!

Alotau 04-03-2007 08:12 PM

Follow-up
 
Thanks again for that link. I was able to hand edit the httpd.conf file and apache does what I wanted it to.

As a follow-up question though, I am running Red Hat 3.2.2 and tried using apacheconf for this change. In the ensuing dialog box I found nowhere for making the adjustments I wanted. Not too big of deal, but did I miss something in apacheconf or does this type of adjustment have to be made directly in the httpd.conf file?

Thanks once more for any info.

mcupples 04-04-2007 08:15 AM

To be honest, I've never heard of apacheconf. Everything I've ever needed to change was in httpd.conf.


All times are GMT -5. The time now is 03:04 AM.