RewriteRule with scgi on Apache 2

M

meng.frank

Hi.
I want to direct all access of "/" to index.html
I tried many things, but it doesn't work.
Like:

RewriteRule ^$ index.html [QSA]
RewriteRule ^/$ /var/www/public/index.html [R]

If I access /index.html, everything works fine.
I don't have scgi-bin or dispatch.scgi on my Linux ES4.
Is that normal?
It will be very helpful if somebody can provide a httpd.conf file and
..htaccess file.
Thank you,
 
S

Steve Peters

--uQr8t48UFsdbeI+V
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi.
I want to direct all access of "/" to index.html
I tried many things, but it doesn't work.
Like:
=20
RewriteRule ^$ index.html [QSA]
RewriteRule ^/$ /var/www/public/index.html [R]
=20
If I access /index.html, everything works fine.
I don't have scgi-bin or dispatch.scgi on my Linux ES4.
Is that normal?
It will be very helpful if somebody can provide a httpd.conf file and
..htaccess file.

You don't need a RewriteRule, you need DirectoryIndex.

DirectoryIndex index.html

Steve Peters
(e-mail address removed)

--uQr8t48UFsdbeI+V
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEFzj19T8SSoPkrKIRAtbtAJ9NFMqlcBpe3izTasrP3DLVD0YEfACdFTJ4
ipuyJ0ATVQt+KPLQAXyNxb8=
=qXqT
-----END PGP SIGNATURE-----

--uQr8t48UFsdbeI+V--
 
M

meng.frank

Thank you for your message.
I do have DirectoryIndex in httpd.conf.
But after I run RubyOnRails, the configuration stopped working.
I am trying to run RubyOnRails with scgi on RedHat ES4.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,757
Messages
2,569,543
Members
45,026
Latest member
camilin05

Latest Threads

Top