Jump to content

WebSite on Virtual host access denied outside intranet


DennyG

Recommended Posts

Hello guys,

 

I searched the internet for a solution for several days and tried different ways but no result.

I installed Oracle Virtual Box on a Window 10 PC and there installed Debian 9 Linux as a guest OS. I used the Bridge Network connection and Guest OS is getting the local IP from our main company router. Next step Apache 2.4, MySQL, PHP 7.0 was installed. At this stage using port forwarding on the main router I was able to access Apache Welcome Page from any IP (home, mobile, local etc.). It was all fine and predictable. However, after installing Prestashop 7.2 version suddenly I am able to access the web page only from within the company LAN, not from home, mobile or anywhere else. But any computer inside the office LAN can see the web page. I assume that Prestashop is altering the privileges in some way during the installation. But inspecting different conf files such as apache2.conf, httpd.conf and others I cannot see where these changes happened. Could someone help me?

 

Also preparing the environment I used the instructions from here: https://linode.com/docs/websites/ecommerce/how-to-install-prestashop-on-ubuntu-16-04/

Maybe some command there altered the access control in some way? But I really used only 

chown -R www-data *
chgrp -R www-data *

and

 

sudo apt-get install php7.0-curl php7.0-gd php7.0-mysql php7.0-zip php7.0-xml php7.0-intl

and

 

sudo a2enmod rewrite

 

Thanks a lot!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...