hovercrafter Posted September 11, 2004 Report Share Posted September 11, 2004 How can I setup apache to access HTML pages stored in users home directory. For example someuser.mydomain.com would route to /home/someuser/html I can get it working using virtual servers, but I have to keep the directories under my /var/www/html/someuser The reason is I would like to limit them to home access on FTP and thought it would be easier if I could set this up so their www files were just stored in the home directory. I dont know if this is the right approach, perhaps I need to do a link to the /var/www/html/someuser from the /home/someuser. Any help would be greatly appreciated TIA Hovercrafter Quote Link to comment Share on other sites More sharing options...
Vdubjunkie Posted September 16, 2004 Report Share Posted September 16, 2004 I don't normally give answers like this, but I saw nobody else was answering.. RTFM!! NO, seriously, google "apache +HOWTO" or something like that. Aside from that, give a more clear idea of what you are trying to do. You say www files and throw out ftp in the same cluster of words. Are you trying to cache internet pages, or let people develop web material locally and view it from an internal web server? Quote Link to comment Share on other sites More sharing options...
hovercrafter Posted September 19, 2004 Author Report Share Posted September 19, 2004 Ok i got the problem figured out. It was with my UserDir directive and for some reason apache wasnt allowing it. I did some restructering on the httpd.conf file and it is working find. Basically all i wanted was to user the user home directories public_html on my server but it wasnt working. it is now. Now for another more complicated question. How would I go about redirecting URL's (im not sure if its a redirect or a rewrite I need). What I would like is the following: requested url: userpage.mysite.com would be the same as mysite.com/~userpage I have my dns set up properly to direct to my server. I just need to get apache configured to handle it. Thanks Alot Hovercrafter Quote Link to comment Share on other sites More sharing options...
capatuy Posted September 19, 2004 Report Share Posted September 19, 2004 Like in Windows, if you want to test your website with an apache server, try this http://localhost/ But first, configure the apache's conf. and change the directory which your website resides, and save it....then restart your apache. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.