Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: access permission issue with httpd-2.4.12 |
|
Author |
|
said76
Joined: 10 Apr 2008 Posts: 9
|
Posted: Tue 23 Jun '15 6:12 Post subject: access permission issue with httpd-2.4.12 |
|
|
Hi,
I am running wordpress for ecommerce using httpd-2.4.12 on my Ubuntu Server 12.04.5. The problem I have is some unknown clients received the message that reads "You don't have permission to access the product on this server" when they were trying to access to the Product page to make a purchase.
When I tested on all of my devices, I did not have any issue with accessing to the page. I know that the page is a secure page with https.
I've looked into the apache logs file and found nothing that's related to 404 or 403 errors there.
Below is what I have configured for my httpd.conf.
Code: | ...
<Directory />
AllowOverride none
Require all denied
</Directory>
<Directory "/home/apache/htdocs">
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Directory "/home/apache/htdocs/wpcommerce">
AllowOverride All
Options -Indexes +FollowSymLinks
Require all granted
</Directory> |
Also, in my httpd-vhost.conf, I've got
Code: | NameVirtualHost 59.161.78.53:80
<VirtualHost 59.161.78.53:80>
ServerName test
DocumentRoot /home/apache/htdocs/wpcommerce
ServerAdmin test
ErrorLog /home/apache/logs/wpcommerce_error.log
LogLevel warn
CustomLog logs/wpcommerce_combined.log combined
RewriteEngine on
RewriteOptions inherit
# Force users to use a secure SSL-connection
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
<Files ~ "^\.ht">
Require all granted
</Files>
<Directory "/home/apache/htdocs/wpcommerce">
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost> |
I have checked permissions by running:
chown -R apache:apache /home/apache
I'm not sure if I have configured my both configuration files correctly.
Thank you in advance |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 23 Jun '15 10:46 Post subject: |
|
|
does your server run as the user apache, not www or www-data? |
|
Back to top |
|
said76
Joined: 10 Apr 2008 Posts: 9
|
Posted: Tue 23 Jun '15 15:54 Post subject: |
|
|
Yes, that's correct. The user and group for apache is apache and apache respectively. Is that the right thing to do? or should I change it to apache:nogroup?
Thank you for your reply. |
|
Back to top |
|
said76
Joined: 10 Apr 2008 Posts: 9
|
Posted: Wed 24 Jun '15 2:50 Post subject: |
|
|
Anyone who might be able to enlighten me on this?
Thank you |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Fri 26 Jun '15 17:08 Post subject: |
|
|
Did you define the DiretoryIndex ?
What error message do you find the in the logs about that? |
|
Back to top |
|
|
|
|
|
|