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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:32:31+00:00 2026-06-12T06:32:31+00:00

I have two virtual hosts, xyz.com and abc.com. From xyz.com I’m making curl post

  • 0

I have two virtual hosts, xyz.com and abc.com. From xyz.com I’m making curl post call(using PHP) to http://abc.com/test
This returns me “403 Error – Forbidden” (http://abc.com/test works fine in browser)

I know this questions sounds quite repeating one. Sorry about that, as I have went through all the solutions given in previous answers, nothing works 🙁

  1. My root folders (doc root) in Apache, have 775 permissions.
  2. In httpd.conf my controls are as follows

    Options FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    
  3. I have also tried adding USERAGENT (of firefox) in code to emulate browser.

I’m not getting whats the exact problem here with Apache. I’m using Apache 2.4

Can some please work out to help on this?

UPDATED
Below is code which I’m using for sending request.

$curl = curl_init();
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)');
curl_setopt($curl, CURLOPT_TIMEOUT, 20);
curl_setopt($curl, CURLOPT_URL, 'http://abc.com/test');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, 'a=b&c=d&e=f');
$headers[] = 'Content-Type:application/x-www-form-urlencoded';
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($curl);
  • 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-12T06:32:32+00:00Added an answer on June 12, 2026 at 6:32 am

    Ahh, its solved. Just changed:

    Options FollowSymLinks
    

    to:

    Options +FollowSymLinks
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is this, for example, a good idea? require_once($_SERVER['DOCUMENT_ROOT'].'/include.php'); If you have two virtual hosts
I have two virtual hosts on windows(for example: test1.dev and test2.dev). But it always
I have these two virtual hosts for my development server. I need to send
I'm working locally across two domains. I have enterprise.local and application.local virtual hosts on
I have two virtual hosts in httpd.conf one for port 443 and one for
I have two apache virtual hosts within the same domain (and on same physical
I have two virtual hosts within my apache config, one for live and one
I have two virtual machines with seemingly identical configuration (created from the same VM
I have two virtual directories, one hosts an application the other hosts a web
I have two virtual hosts on my server pointing towards two separate rails applications.

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.