-
Aliased folder on apache
I wanted to change my images folder, so I put this in httpd.conf:
<IfModule mod_alias.c>
Alias /icons/ /usr/share/apache/icons/
<Directory /usr/share/apache/icons>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# Alias /images/ /usr/share/images/
Alias /images/ /var/wwwFiles/images/
<Directory /var/wwwFiles/images>
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</IfModule>
Then I saved it went to restart apache. This is what I got:
root@Linux800:/home/mark # /etc/init.d/apache2 restart
* Forcing reload of web server (Apache2)...
(98)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
*able to open logs [fail]
root@Linux800:/home/mark #
Here's how I'm calling my images:
[img]../images/mars_1.jpg[/img]
http://mark.arkaoss.com/images/mars_seattlehumor.jpg
They don't come up.
-
My bad, the folder was /var/www/images/ and I didn't need to restart Apache2, I'm running 1.3, so I had to do the apache restart. Duh to me.