On Thursday 18 November 2004 3:27 am, Johnny C wrote:
> Is there a way for me to have my main website
> point to a subfolder?
>
> So main website will be in (mydomain.com)
> /var/www/html/mywebsite
>
> other subfolders should not be affected (mydomain.com/other)
> /var/www/html/other
you can do this:
<IfModule mod_alias.c>
...
Alias <path-relative to your domain root> <absolute path on your system>
# for example:
# Alias /matt /home/mbaluyos/public_html/
# http://localhost/matt will now map to /home/mbaluyos/public_html
...
</IfModule>
then restart your httpd (service httpd restart)
or, you can also use symlinks by doing something like:
ln -sf /home/mbaluyos/public_html /var/www/html/matt
which does the same thing as above. note that in the second example, symlinks
can be disabled by your sysad by changing the FollowSymLinks option in the
apache configuration (your symlinks would then not work). more importantly,
it's a lot less secure because anyone can link to important files and read
them via their browser.
--
Matt Arnilo S. Baluyos
Research and Software Development
System Net International, Inc. - Philippines
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie