Module Url Working On Localhost But Not Working On Server

i have generated a module admin by gii and add module based authentication.application is running on virtual host as


www.localhost.com

and it module is working fine in localhost by url


www.localhost.com/admin

or


www.localhost.com/admin/default

but when i upload module on server and access by url it give error 404.

i have checked it on another server also.

my config/main.php as


'urlManager'=>array(

			'urlFormat'=>'path',

			'showScriptName'=>false,

			'rules'=>array(

				'<controller:\w+>/<id:\d+>'=>'<controller>/view',

				'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',

				'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',

			),

		),

and .htaccess file as


Options +FollowSymLinks

IndexIgnore */*

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php



Please tell me what i am missing.

EDIT------

Sorry for your time . i miss add this module to app config file


'modules' => array('admin'), 

i do’t know how to close this thread .

may be :

apache config , open the rewrite support(httpd.conf) :




LoadModule rewrite_module modules/mod_rewrite.so




thanks for quick reply

But on server site is already working and url rewrite also as i am able to access login page by


www.site_name.com/user/login

but the problem occur when i add module in directory


protected/modules/admin