Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8119625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:51:05+00:00 2026-06-06T04:51:05+00:00

This should be a simple issue but I can’t figure this out. I have

  • 0

This should be a simple issue but I can’t figure this out. I have a webpage running on a machine to access from the local network. I want to redirect the results of scripts run under cgi back to my /var/www/index.html/ file. I tried to place a redirect line in my /etc/apache2/apache2.conf“ that didn’t work so I tried an even simpler task:

redirect permanent /var/www/index.html http://www.google.com

And not even this worked.

What am I doing wrong?

I’m running this on an Ubuntu machine.

Edit:

This is added to my error log when I restart the server:

[Sat Jun 16 17:26:36 2012] [notice] caught SIGTERM, shutting down         | * Restarting web server apache2
[Sat Jun 16 17:26:36 2012] [notice] Apache/2.2.22 (Ubuntu) configured -- \|apache2: Could not reliably determine the server's fully qualified domain \
resuming normal operations      

Edit: Solved and a new problem

I have managed to redirect the webpage to google and now I want to do the actual redirect. I have added this to my apache2.conf file

Redirect permanent /cgi-bin/file.cgi /index.html

And removed the previous file. The file now is redirected to google and not back to my home file…

What’s going on?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:51:08+00:00Added an answer on June 6, 2026 at 4:51 am

    As far as I know the redirect is not based on a ‘file’ but on an URL.

    So in your case you should try:

    Redirect permanent /index.html http://www.google.com
    

    See the apache docs for more information: http://httpd.apache.org/docs/2.0/mod/mod_alias.html#Redirect

    You could also try mod_rewrite, but keep in mind it works on incoming requests/URLs not on files on the filesystem.

    ps. Make sure you reload you configuration after your changes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should seem simple enough, but can't figure it out. I was porting a
This should be simple, yet I can't get it to work. I have a
This should be a simple question, but I just can't recall the relevant API.
This should be very simple, but its very frustrating. I have a LinqToSql as
It's an important security issue and I'm sure this should be possible. A simple
This should be simple, but the answer is eluding me. If I've got a
This should be simple, but I am still lost. There is a very similar
Seems like this should be simple, but powershell is winning another battle with me.
I think this should be simple but I am having some difficulty implementing it.
I think this should be simple, but im having a real hard time finding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.