Results 1 to 2 of 2
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
...
- 10-25-2005 #1Linux Newbie
- Join Date
- Feb 2005
- Location
- Lebanon, PA
- Posts
- 110
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]

They don't come up.'Linux is like a swiss army knife. Yet it never gets that "I'm bloated and need suspenders" feeling.' - www.arkaoss.com
- 10-25-2005 #2Linux Newbie
- Join Date
- Feb 2005
- Location
- Lebanon, PA
- Posts
- 110
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.
'Linux is like a swiss army knife. Yet it never gets that "I'm bloated and need suspenders" feeling.' - www.arkaoss.com


Reply With Quote