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 3997976
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:28:04+00:00 2026-05-20T07:28:04+00:00

I have Apache Web Server on my Host Machine and also on my Virtual

  • 0

I have Apache Web Server on my Host Machine and also on my Virtual Box Machines. Host Machine’s Apache web server is serving my sites perfectly.

I have forwarded requests to my router to port 80 of my Host Machine so cannot configure it be forwarded to my Virtual Machine as well. So I thought of using Apache’s Proxy capabilities.

I came across this configuration for Apache so as to forward the requests to the virtual machine when they come.

< VirtualHost *:* >
ProxyPreserveHost On
ProxyPass / http://192.168.111.2/
ProxyPassReverse / http://192.168.111.2/
ServerName hostname.example.com
< /VirtualHost > 

When I am activating this setting on my Web Server all my sites (be it on Virtual Machine or Host Machine) start giving “Access Forbidden” Error.

I am not sure what I am doing wrong.

Regards,
Nitin

  • 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-20T07:28:05+00:00Added an answer on May 20, 2026 at 7:28 am

    I tried the following configuration and got it working –

    < VirtualHost *:80 >
    
            ServerName mydomain.com
    
            ServerAlias *.mydomain.com
    
            ProxyPass / http://172.16.0.201
    
            ProxyPassReverse / http://172.16.0.201
    
    < /VirtualHost >
    

    Not sure if there can be a more elegant solution than this one.

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

Sidebar

Related Questions

I have apache web server installed as frontend and I have j2ee SAP Netweaver
I'm having trouble with my Apache Web Server. I have a folder (htdocs\images) where
I have a web site using apache httpd as the server and mysql as
I have a static Web project added to an Apache server. Whenever I make
I have installed symfony sandbox 1.2 and created a virtual host by modifying apache
I'm trying to host a python script using an apache web server, but the
I have an apache server installed on my portable windows 7 machine using xampp
I have not done any web dev before. I got my Apache server running
I have a Pylons web application served by Apache (mod_wsgi, prefork). Because of Apache,
I have an apache webserver serving 2 URLs. I use VirtualHosts to configure it

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.