#1  
Old 23rd July 2007, 19:15
llamy llamy is offline
Member
 
Join Date: Jun 2007
Posts: 80
Thanks: 3
Thanked 0 Times in 0 Posts
Default mod_rewrite

Hi,
I have a this problem and have been trying to fix without success, any help please.

i want to access the directory moodle in /var/www/web1/web on my site like this>
http://moodle.example.com , where http://www.example.com is my website.

for that i have created a co-domain in ISPconfig like this > hostname : moodle
Domain : example.com

i have then added the following in the Apache Directives of ISPConfig :

<VirtualHost 192.168.xxx.xxx>
ServerName moodle.example.com
ServerAlias www.moodle.example.com
ServerAdmin info@example.com
DocumentRoot /var/www/web1/web/moodle
</VirtualHost>

but when i try to access > http://moodle.example.com i have this error :

Server not Found, Firefox can't find the server at : moodle.example.com

what i'm missing here ? thanks in advance.
Reply With Quote
Sponsored Links
  #2  
Old 23rd July 2007, 19:24
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,493 Times in 4,324 Posts
Default

Why do you add a vhost in apache directives, this is not nescessary and not possible. Just remove it. You can not add a vhost within a vhost.

If you want to redirect a subdomain to a directory, have a look here:

http://www.howtoforge.com/forums/showthread.php?t=12783
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 24th July 2007, 08:41
llamy llamy is offline
Member
 
Join Date: Jun 2007
Posts: 80
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default Thanks

Thank you very much Till for your help, it's working fine now.
llamy.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:10.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.