beeswax Posted December 15, 2006 Posted December 15, 2006 My school has a new server on which they want to run the school website and VLE (Moodle), and it's been divided into 2 drives, C:\ for the website and A2T, and D:\ for the VLE. Is this possible, and if so, how is it achieved? *EDIT* My school hada new server which just blue screened.
webman Posted December 15, 2006 Posted December 15, 2006 Apache virtual host, something like this off the top of my head: DocumentRoot C:/website ServerName [url]www.ourschool.lea.sch.uk[/url] DocumentRoot D:/moodle ServerName vle.ourschool.lea.sch.uk You will be able to test this by temporarily adding lines in the c:\windows\system32\drivers\etc\hosts file: 172.16.8.1 [url]www.ourschool.lea.sch.uk[/url] 172.16.8.1 vle.ourschool.lea.sch.uk Where 172.16.8.1 is the IP of your new server
beeswax Posted December 15, 2006 Author Posted December 15, 2006 you lost me after "Apache" lol. I should have added that pupils will connect to the VLE via the website, so will your above instructions still apply? thanks Craig
webman Posted December 15, 2006 Posted December 15, 2006 Sorry Basically you need to edit apache's httpd.conf file to include those lines above, which will accept connections when the specific domain is requested, and will load files from the respective DocumentRoot directives. That's if you run them across separate domains. If you're just using one domain but want the files stored elsewhere, you'll need to use Alias: Alias /moodle/ "/D:/moodle/" So http://myserver/ will load files from wherever they are at the moment. http://myserver/moodle/ will load them from D:\moodle\.
alan-d Posted December 15, 2006 Posted December 15, 2006 @ webman Would you be so kind and tell me exactly what I need to put into the httpd.conf file after: Listen *:80 I have a website running from C: and I want another running from D: - single IP addy (Test setup so no DNS as yet - will have to edit host file) Between the apache docs and what you have put up top I can't work it out - btw I'm a noob at apache and most scripting if I'm honest Most kind
webman Posted December 15, 2006 Posted December 15, 2006 In your case you'd just use Alias: Alias /moodle/ "/D:/moodle/" So http://www.example.com/moodle would load files from d:\moodle You only need VirtualHost if you want to run multiple hostnames/domains off a single IP address.
alan-d Posted December 15, 2006 Posted December 15, 2006 Thanks for that - it's what I had but it's not working so I'm obviously doing something wrong On C: I have C:\Programe Files\Apache Software Foundation\Apache2.2\htdocs\CMS\news.php - which leads to the home page (http://localhost/CMS/news.php.) That works fine On D: I have D:\moodle\install.php - This should I believe be http://localhost/moodle/install.php I suspect that the windows host file is incorrect - what URL should I be putting after the IP address of the PC if it's only local at the mo? :oops: Sorry to sound thick - but I am :oops:
webman Posted December 15, 2006 Posted December 15, 2006 Could you PM me your httpd.conf so I have a better idea how it's set up please?
beeswax Posted January 2, 2007 Author Posted January 2, 2007 I'm having to return to this as I thought I'd got it solved, but like news year's resolutions, it all disappeared on new years day. Like alan-d I'm hosting locally while I get my head round design etc but I can't figure out why on D: I have D:\moodle\install.php - This should I believe be localhost/moodle/install.php isn't working for me. Using Apache2Triad.
alan-d Posted January 2, 2007 Posted January 2, 2007 I'm not in till tomorrow but if you remind me I'll send you a copy of my httpd.conf file for you to compare. I can't remember excatly what I did at the mo.
beeswax Posted January 2, 2007 Author Posted January 2, 2007 I can't remember excatly what I did at the mo. I keep getting flashbacks. lol. Thanks a lot. beeswax
alan-d Posted January 3, 2007 Posted January 3, 2007 Is this any help? Alias /moodle "D:/moodle" Options FollowSymLinks MultiViews AllowOverride All Order deny,allow Allow from all Satisfy all
beeswax Posted January 4, 2007 Author Posted January 4, 2007 @ alan-d that worked a treat eventually. tried it at home, pasted above into httpd.conf file, no luck, restarted computer, no luck double-checked, no luck. brought laptop into work this morning, NM manager asks how I got on, preparing excuses as it boots, open browser, click on localhost/moodle expecting zilch and Edugeek be praised! it's a miracle. I'll take the laptop home tonight and see what happens there. @webman, thanks once again for all your behind the scenes work. One of the many unsung heros here on Edugeek.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now