veysel
Chevereto Member
hi there,
im using ubuntu 12.4 and im getting 500 internal server error. here is my config files below thanks for any help.
im trying to run the script on base path /var/www folder. not a subfolder.
/etc/apache2/sites-available/default
/var/www/.htaccess
im using ubuntu 12.4 and im getting 500 internal server error. here is my config files below thanks for any help.
im trying to run the script on base path /var/www folder. not a subfolder.
/etc/apache2/sites-available/default
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
/var/www/.htaccess
Code:
# Disable server signature
ServerSignature Off
# Disable directory listing (-indexes), Multiviews (-MultiViews) and enable Follow system links (+FollowS$
Options -Indexes
Options -MultiViews
Options +FollowSymLinks
# Turn on mod_rewrite
RewriteEngine On
# If you have problems with the rewrite rules remove the "#" from the following RewriteBase line
# You will also have to change the path to reflect the path to your Chevereto installation
RewriteBase /
# The /api rewrite
RewriteRule ^api$ api.php [L]
# If you want to have your own fancy "image not found" image remove the "#" from RewriteCond and RewriteR$
# Make sure to apply the correct paths to reflect your current installation
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule images/.+\.(gif|jpe?g|png|bmp) content/system/img/404.gif [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.([a-z]{1,4})$ [NC]
RewriteRule . index.php [L]