Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th March 2013, 22:51
SiByte SiByte is offline
Junior Member
 
Join Date: May 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Internar error after adding *.conf

Hi!

I have a problem with my server. I add a .conf file in /etc/apache2/conf.d/ and I get Internal error.

.conf file
Code:
# RoundCube alias and redirect functions
Alias /roundcube /var/www/roundcube
<Directory /var/www/roundcube>
  Options +FollowSymLinks
  # This is needed to parse /var/www/roundcube/.htaccess. See its
  # content before setting AllowOverride to None.
  AllowOverride All
  order allow,deny
  allow from all
</Directory>

<IfModule mod_rewrite.c>
  <IfModule mod_ssl.c>
    <Location /roundcube>
      RewriteEngine on
      RewriteCond %{HTTPS} !^on$ [NC]
      RewriteRule . https://domain.com:8080/roundcube/  [L]
    </Location>
  </IfModule>
</IfModule>
in log files
Code:
[Sat Mar 30 22:35:19 2013] [error] [client 193.177.153.156] SoftException in Application.cpp:221: File "/var/www/roundcube/index.php" is not in document root of Vhost "/var/www/ispconfig/"
[Sat Mar 30 22:35:19 2013] [error] [client 193.177.153.156] Premature end of script headers: index.php
Where is the problem? I use the same .conf file on old server with old ISPConfig 3.
Reply With Quote
Sponsored Links
  #2  
Old 30th March 2013, 23:57
8omas 8omas is offline
Senior Member
 
Join Date: Jan 2011
Posts: 148
Thanks: 16
Thanked 35 Times in 26 Posts
Default

Have a look at this
http://www.howtoforge.com/forums/showthread.php?t=60746

Try pasting :

<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_admin_flag allow_url_fopen Off
php_value include_path .:/usr/share/php:/usr/share/pear
php_admin_value upload_tmp_dir /var/lib/roundcube/temp
php_admin_value open_basedir /usr/share/php:/usr/lib/roundcube:/etc/roundcube:/usr/share/roundcube:/var/lib/roundcube:/var/log/roundcube
php_flag register_globals off
</IfModule>

below the contents of your file

Last edited by 8omas; 31st March 2013 at 00:00.
Reply With Quote
  #3  
Old 31st March 2013, 07:46
SiByte SiByte is offline
Junior Member
 
Join Date: May 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

not work

Last edited by SiByte; 31st March 2013 at 09:13.
Reply With Quote
  #4  
Old 31st March 2013, 13:34
8omas 8omas is offline
Senior Member
 
Join Date: Jan 2011
Posts: 148
Thanks: 16
Thanked 35 Times in 26 Posts
Default

Did you read the thread?
There are some suggestions in there.
Reply With Quote
  #5  
Old 1st April 2013, 09:08
SiByte SiByte is offline
Junior Member
 
Join Date: May 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes but I don't find solution
Reply With Quote
  #6  
Old 1st April 2013, 10:33
JeffryL JeffryL is offline
Member
 
Join Date: Apr 2011
Posts: 36
Thanks: 10
Thanked 0 Times in 0 Posts
Default

This works for me over port 80:

Code:
<IfModule mod_rewrite.c>
  <IfModule mod_ssl.c>
    <Location /webmail>
      RewriteEngine on
      RewriteCond %{HTTPS} !^on$ [NC]
      RewriteRule . https://%{HTTP_HOST}:8080%{REQUEST_URI}  [L]
    </Location>
  </IfModule>

<IfModule mod_rewrite.c>
  <IfModule mod_ssl.c>
    <Location /roundcube>
      RewriteEngine on
      RewriteCond %{HTTPS} !^on$ [NC]
      RewriteRule . https://%{HTTP_HOST}:8080%{REQUEST_URI}  [L]
    </Location>
  </IfModule>

<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_admin_flag allow_url_fopen Off
php_value include_path .:/usr/share/php:/usr/share/pear
php_admin_value upload_tmp_dir /var/lib/roundcube/temp
php_admin_value open_basedir /usr/share/php:/usr/lib/roundcube:/etc/roundcube:/usr/share/roundcube:/var/lib/roundcube:/var/log/roundcube
php_flag register_globals off
</IfModule>

Last edited by JeffryL; 1st April 2013 at 10:39.
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 06:31.


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