Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Permission Denied To Access Root On This Server 403

Featured Replies

This sould be easy to correct but since I am not handy with the Apache httpd-vhosts.conf commands I would be super happy about some quick help.

 

My original httpd-vhosts.conf file from a previous development environment looks like this.

<VirtualHost *:80>
    DocumentRoot "D:/WEB PROJECTS/WWW"
    ServerName work.webdev
    ServerAlias www.work.webdev

    <Directory "D:/WEB PROJECTS/WWW">
	AllowOverride all
        Options Indexes FollowSymLinks

    	<IfDefine APACHE24>
    		Require local
    		Require ip 192.168.188
	</IfDefine>

	<IfDefine !APACHE24>
		Order Deny,Allow
    		Deny from all
    		Allow from 127.0.0.0/8 localhost ::1 192.168.188
    	</IfDefine>

    </Directory>
</VirtualHost>

When I, instead of using

    	<IfDefine APACHE24>
    		Require local
    		Require ip 192.168.188
	</IfDefine>

	<IfDefine !APACHE24>
		Order Deny,Allow
    		Deny from all
    		Allow from 127.0.0.0/8 localhost ::1 192.168.188
    	</IfDefine>

simply use

	AllowOverride all
        Options Indexes FollowSymLinks
			Require all granted

I can access the root and all my projects fine.

 

However I would like to restrict access to these projects to IP localhost "127.0.0.1" as well as to IPs on the local network starting with "192.168.188....".

 

How would I have to write this for Uniform Server ZeroXI to accept this please?

 

I assume this line is the culprit.

<IfDefine APACHE24>

Any help with this is much appreciated.

 

Thank you.

  • Author

Ok I fixed the permission error by simply deleting the conditional APACHE24 command.

 

Now the httpd-vhosts.conf file looks like this.

<VirtualHost *:80>
    DocumentRoot "D:/WEB PROJECTS/WWW"
    ServerName work.webdev
    ServerAlias www.work.webdev

    <Directory "D:/WEB PROJECTS/WWW">
	AllowOverride all
        Options Indexes FollowSymLinks
			
    	Require local
    	Require ip 192.168.188
		
		Order Deny,Allow
    		Deny from all
    		Allow from 127.0.0.0/8 localhost ::1 192.168.188    	

    </Directory>
</VirtualHost>

However, does this really make sure that only IP 127.0.0.1 as well as all IPs on the local network starting with 192.168.188... are allowed to access root?

 

Are my commands for the httpd-vhosts.conf file correct like this or are these access permission settings wrong?

 

Thank you for confirming this.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.