cancel
Showing results for 
Search instead for 
Did you mean: 

magento redirecting to internal ip from public ip

magento redirecting to internal ip from public ip

Hi all,

 

i was hoping someone can help me, I can access magento from the internal ip, but as soon as I try to access it via a public ip, I get a redirect to the internal ip.

 

I know part forwarding is setup correctly, as I can reach phpmyadmin via the external ip address, 

 

apache virtualhost is set up as follows:

 

<VirtualHost *:80>
    DocumentRoot /var/www/magento2
    <Directory /var/www/magento2/>
       Options Indexes FollowSymLinks MultiViews
       AllowOverride All
    </Directory>
</VirtualHost>

 

 

an help most appreciated

 

thanks

 

 

 

1 REPLY

Re: magento redirecting to internal ip from public ip

Ok I got it working as I am using Ubuntu 14.04 - the root to the website should have been within /html