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

  • SEARCH
  • Home
  • 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 7628665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:38:09+00:00 2026-05-31T05:38:09+00:00

Good time of day! I successfully used apache + php on windows 7, but

  • 0

Good time of day!
I successfully used apache + php on windows 7, but now I desided to make a couple of virtual hosts. I added to the end of apache config such section:

<virtualhost> 
ServerAdmin yourmail@domain.com 
ServerName jiifirst 
DocumentRoot "c :/ apache2/web/jiifirst/htdocs" 
ScriptAlias ​​/ cgi-bin / "c :/ apache2/web/jiifirst/cgi-bin /" 
ErrorLog c :/ apache2 / web / jiifirst / logs / error.log 
CustomLog c :/ apache2/web/jiifirst/logs/access.log common 
</ virtualhost>

Then created the appropriate folders. However when I try to call http://127.0.0.2/test.php
such error appears:

error Forbidden
You don’t have permission to access / test.php on this server.

At the same time I can still access localhost without problems. I have also changed rights to the folders. What apache settings should I change to fix this problem?

  • 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-05-31T05:38:11+00:00Added an answer on May 31, 2026 at 5:38 am

    Firstly, what’s with all the spaces in the configuration? E.g. "c :/ apache2/web/jiifirst/htdocs". That’s not your real config; how did you cut and paste this?

    Secondly, you’re talking to the server as http://127.0.0.2. Yes, that is the server’s IP address, but in HTTP (at least 1.1 and later), an address means more than just identifying a network card on a machine. It identifies a web site domain. The address goes into the protocol, and the web server can decide which web site to provide to the client (at the same IP address).

    Your VirtualHost defines a web site whose domain name is jiifirst. This does not match the IP-based access 127.0.0.2.

    However, can still match the VirtualHost anyway. Your VirtualHost is missing the address and port match fields, but if it looks something like this:

    <VirtualHost *:80>
    

    it means that it’s possible for the VirtualHost to match an IP based request from any address to port 80. If Apache cannot find an exact match for the host name among any of the VirtualHost entries, (and you have no special default VirtualHost), it will choose the first one in order of appearance that has a match on the address.

    The lack of an address on <VirtualHost> may be the reason why things are not happening (and possibly the spaces, if they are indeed real).

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

Sidebar

Related Questions

Good day all, It's the first time I am using Qt on Windows CE
So I have been playing with jQuery for a good time now and I'm
First off good day and thanks for taking the time to answer my question.
Good time of a day! My team develop the soft to backup files to
good day.. i have an Address Book Program... it runs properly but it doesn't
Good day guys, After browsing a bit in my spare time at work, I
Good time of a day! I have a MVC project with query in controller:
Good day! I am trying to use jquery for the first time. And i
Thank you for your time, I have spent a good part of my day
Good time of a day. I have a problem. I need to test admob

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.