You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by thomas Armstrong <ta...@gmail.com> on 2007/10/17 14:22:00 UTC

[users@httpd] Alias won't work within my httpd.conf

Hi.

Using Apache 2.0 on Linux (with 'mod_alias' loaded), I want to set an Alias:
/events/ --> /usr/www/myproject/newweb/modules/events/web/

This is part of my 'httpd.conf':
--------------------------------------------
<VirtualHost 17.213.141.107:80>
	ServerAdmin info@mydomain.com
	DocumentRoot /usr/www/myproject/newweb/web
	ServerName newweb.myproject.com
	ServerAlias newweb.myproject.net newwebmyproject.foo.com
	CBandSpeed 2048 35 40
	ScriptAlias /cgi-bin /usr/www/cgi-bin/newweb
	php_flag display_errors 0
	php_flag display_startup_errors 1
	php_admin_value safe_mode_include_dir /usr/www/myproject/newweb
	php_admin_value safe_mode_exec_dir /usr/www/cgi-bin/newweb
	ErrorLog /usr/www-logs/newweb-error_log
	CustomLog "|/usr/local/sbin/cronolog
/usr/www-logs/newweb-access_log_%m-%y" combined

   	#Events module
   	Alias /events/ /usr/www/myproject/newweb/modules/events/web/
   	<Directory "/usr/www/myproject/newweb/modules/events/web">
		Options Indexes FollowSymLinks
	       	Order Allow,Deny
	       	Allow from all
	       	AllowOverride all
		DirectoryIndex index.php
	</Directory>	
</VirtualHost>
------------------------------------------------

But if I access:
http://newweb.myproject.com/events/
I get a 404 error.

Any similar experience? Thank you very much.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Alias won't work within my httpd.conf

Posted by Krist van Besien <kr...@gmail.com>.
On 10/17/07, thomas Armstrong <ta...@gmail.com> wrote:
...
> But if I access:
> http://newweb.myproject.com/events/
> I get a 404 error.

What error messages do you see in your error log?

Krist



-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org