Problem with setting the vhost

Hello,

I installed invoiceplane and everything works fine while working with ‘localhost’ like urls. When working with my domain name, i got an internal server error. Apache log is telling me :

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.

Backtrace is showing me this :

82.241.11.224 - - [17/Aug/2015:15:41:40 +0200] [josiane.thecloudfactory.fr/sid#7f2a1e8e22b0][rid#7f2a1987b028/initial/redir#9] (3) [perdir /var/www/josiane/] applying pattern ‘.’ to uri ‘josiane/index.php’
82.241.11.224 - - [17/Aug/2015:15:41:40 +0200] [josiane.thecloudfactory.fr/sid#7f2a1e8e22b0][rid#7f2a1987b028/initial/redir#9] (2) [perdir /var/www/josiane/] rewrite ‘josiane/index.php’ → ‘index.php’
82.241.11.224 - - [17/Aug/2015:15:41:40 +0200] [josiane.thecloudfactory.fr/sid#7f2a1e8e22b0][rid#7f2a1987b028/initial/redir#9] (3) [perdir /var/www/josiane/] add per-dir prefix: index.php → /var/www/josiane/index.php
82.241.11.224 - - [17/Aug/2015:15:41:40 +0200] [josiane.thecloudfactory.fr/sid#7f2a1e8e22b0][rid#7f2a1987b028/initial/redir#9] (2) [perdir /var/www/josiane/] trying to replace prefix /var/www/josiane/ with /josiane
82.241.11.224 - - [17/Aug/2015:15:41:40 +0200] [josiane.thecloudfactory.fr/sid#7f2a1e8e22b0][rid#7f2a1987b028/initial/redir#9] (1) [perdir /var/www/josiane/] internal redirect with /josiane/index.php [INTERNAL REDIRECT]
82.241.11.224 - - [17/Aug/2015:15:41:40 +0200] [josiane.thecloudfactory.fr/sid#7f2a1e8e22b0][rid#7f2a19878468/initial/redir#10] (3) [perdir /var/www/josiane/] add path info postfix: /var/www/josiane/josiane → /var/www/josiane/josiane/index.php
82.241.11.224 - - [17/Aug/2015:15:41:40 +0200] [josiane.thecloudfactory.fr/sid#7f2a1e8e22b0][rid#7f2a19878468/initial/redir#10] (3) [perdir /var/www/josiane/] strip per-dir prefix: /var/www/josiane/josiane/index.php → josiane/index.php
82.241.11.224 - - [17/Aug/2015:15:41:40 +0200] [josiane.thecloudfactory.fr/sid#7f2a1e8e22b0][rid#7f2a19878468/initial/redir#10] (3) [perdir /var/www/josiane/] applying pattern ‘.’ to uri ‘josiane/index.php’
82.241.11.224 - - [17/Aug/2015:15:41:40 +0200] [josiane.thecloudfactory.fr/sid#7f2a1e8e22b0][rid#7f2a19878468/initial/redir#10] (2) [perdir /var/www/josiane/] rewrite ‘josiane/index.php’ → ‘index.php’
82.241.11.224 - - [17/Aug/2015:15:41:40 +0200] [josiane.thecloudfactory.fr/sid#7f2a1e8e22b0][rid#7f2a19878468/initial/redir#10] (3) [perdir /var/www/josiane/] add per-dir prefix: index.php → /var/www/josiane/index.php
82.241.11.224 - - [17/Aug/2015:15:41:40 +0200] [josiane.thecloudfactory.fr/sid#7f2a1e8e22b0][rid#7f2a19878468/initial/redir#10] (2) [perdir /var/www/josiane/] trying to replace prefix /var/www/josiane/ with /josiane
82.241.11.224 - - [17/Aug/2015:15:41:40 +0200] [josiane.thecloudfactory.fr/sid#7f2a1e8e22b0][rid#7f2a19878468/initial/redir#10] (1) [perdir /var/www/josiane/] internal redirect with /josiane/index.php [INTERNAL REDIRECT]

Any idea how I could solve this?

Also, I would like to mad the url sent with quotes showing my domain name instead of the server name address.

Thanks a lot for your support,

Bruno

Did you moved the app from localhost to the domain?
Could you please post the content of the .htaccess file?

Hello,

And thank you for answering that fast.

What I meant is that everything works fine when I use the DNS of my server as the url. But when I start using the domain I have, I got an error. Despite a vhost file with Allowoverride All.

Here is my .htaccess :

'# Remove index.php
RewriteEngine on
RewriteBase /josiane
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
Redirect /josiane/setup http://www.thecloudfactory.fr/
RewriteRule . index.php [L]

Thank you for your help.

Cheers,

Bruno

Here is the vhost file :

> <VirtualHost *:80>
>         ServerAdmin brunodietrich@thecloudfactory.fr
>         ServerName josiane.thecloudfactory.fr
>         ServerAlias josiane.thecloudfactory.fr

>         DocumentRoot /var/www/josiane
>         <Directory />
>                 Options FollowSymLinks
>                 AllowOverride None
>         </Directory>
>         <Directory /var/www/josiane>
>                 Options Indexes FollowSymLinks MultiViews
>                 AllowOverride All
>                 Order allow,deny
>                 allow from all
>         </Directory>

>         ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
>         <Directory "/usr/lib/cgi-bin">
>                 AllowOverride None
>                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
>                 Order allow,deny
>                 Allow from all
>         </Directory>

>         ErrorLog /var/log/apache2/error.log

>         # Possible values include: debug, info, notice, warn, error, crit,
>         # alert, emerg.
>         LogLevel warn

>         CustomLog /var/log/apache2/access.log combined

>     Alias /doc/ "/usr/share/doc/"
>     <Directory "/usr/share/doc/">
>         Options Indexes MultiViews FollowSymLinks
>         AllowOverride None
>         Order deny,allow
>         Deny from all
>         Allow from 127.0.0.0/255.0.0.0 ::1/128
>     </Directory>

> </VirtualHost>

I suggest switching to the htaccess-less solution. Read this to find out how to disable the .htaccess file: Unsuccesfull installation