Apache doesn't follow symbolic links for some unknown reason although I configured it to accept them as following:
Code:
mbnoimi-laptop Projects # ls -l
total 4
drwxrwxr-x 2 www-data www-data 4096 كانون 15 14:31 MyBlog
mbnoimi-laptop Projects # cd MyBlog/
mbnoimi-laptop MyBlog # ls -l
total 20
-rwxrwxr-x 1 www-data www-data 11510 كانون 10 07:09 index.html
mbnoimi-laptop MyBlog # nano .htaccess
mbnoimi-laptop MyBlog # cat .htaccess
Option Indexes
mbnoimi-laptop MyBlog # cd ..
mbnoimi-laptop Projects # ln -s '/home/mbnoimi/Desktop/Projects/MyBlog' /var/www/html/
mbnoimi-laptop Projects # ls -l /var/www/html/
total 12
-rwxrwxr-x 1 mbnoimi www-data 11510 كانون 10 07:09 index_.html
lrwxrwxrwx 1 root root 37 كانون 15 14:48 MyBlog -> /home/mbnoimi/Desktop/Projects/MyBlog
mbnoimi-laptop Projects # chown -R www-data:www-data /var/www/html/MyBlog
mbnoimi-laptop Projects # ls -l /var/www/html/
total 12
-rwxrwxr-x 1 mbnoimi www-data 11510 كانون 10 07:09 index_.html
lrwxrwxrwx 1 www-data www-data 37 كانون 15 14:48 MyBlog -> /home/mbnoimi/Desktop/Projects/MyBlog
mbnoimi-laptop Projects #
When I browse http://localhost/MyBlog I get:
Code:
Forbidden
You don't have permission to access /MyBlog on this server.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80
/etc/apache2/sites-enabled/000-default.conf
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory />
Options FollowSymLinks Indexes
AllowOverride None
</Directory>
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
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 ${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
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>
My I get some help please?
Bookmarks