Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Addon domain redirecting to main domain



Threaded Mode | Print  

 Addon domain redirecting to main domain (13 Replies, Read 31878 times)
jkility
Group: Member
Post Group: Newbie
Posts: 6
Status:
Hi,

I've been having a problem with Webuzo where I have my addon domain that is actually redirecting to the main domain and for some reason I just cannot figuire out why. I only noticed the fault when I was configuiring Prestashop on my domain.

I've raised the issue with my webhost and they have said in short: "This is actually an error in /usr/local/apps/apache/etc/conf.d/webuzoVH.conf. Webuzo is not handling the VirtualHost mappings properly."

Is there a way to get this rectified? My main domain is rebootmewithhsct[dot]co[dot]uk and the addon domain I'm trying to set up is www[dot]fab-fudge[dot]co[dot]uk

Regards
Josh
IP: --   

Addon domain redirecting to main domain
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Hi Josh,
when you add an add on domain you have to insert the patch where you want the domain point.

If you have different website in Webuzo I suggest to have in public_html a different folder for each domain.

ex
public_html/domain1
public_html/domain2

So you need insert in the patch of the add on the domain2 folder this will redirect your add on domain to that folder and will be loaded the index page.

Sometimes if you need redirect to a specific page into the folder you need setup an .htaccess file.

Right now opening your second domain show to me a redirect to https are you using Apache? Have you created some .htaccess file whit redirection to https?


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Addon domain redirecting to main domain
jkility
Group: Member
Post Group: Newbie
Posts: 6
Status:
Quote From : peopleinside July 24, 2016, 2:13 pm
Hi Josh,
when you add an add on domain you have to insert the patch where you want the domain point.

If you have different website in Webuzo I suggest to have in public_html a different folder for each domain.

ex
public_html/domain1
public_html/domain2

So you need insert in the patch of the add on the domain2 folder this will redirect your add on domain to that folder and will be loaded the index page.

Sometimes if you need redirect to a specific page into the folder you need setup an .htaccess file.

Right now opening your second domain show to me a redirect to https are you using Apache? Have you created some .htaccess file whit redirection to https?


Hi,

Thanks for getting back to me.

My Main domain (rebootme) is currently in /public_html/
where as fab-fudge is currently in /public_html/fab-fudge_couk (Webuzo is pointing to this)

What exactly is the patch sorry?

I am currently using Apache and on rebootme there is a .htaccess that redirects to the https version of rebootme, I assume this shouldent affect any addon domains?

on Fab-fudge.co.uk I currently have a .htaccess but that is linked to and has been created by Prestashop it self.
IP: --   

Addon domain redirecting to main domain
jkility
Group: Member
Post Group: Newbie
Posts: 6
Status:
Here's what my .htaccess in rebootme current say's

Code
Header always set Strict-Transport-Security "max-age=31536000; preload"
Header always set X-Frame-Options DENY
Header always set X-Content-Type-Options nosniff
RewriteCond %{SERVER_PORT} *Removed*
RewriteRule ^(.*)$ https://www.rebootmewithhsct.co.uk/$1 [R,L]

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


# Wordfence WAF
<Files ".user.ini">
<IfModule mod_authz_core.c>
    Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
</IfModule>
</Files>

# END Wordfence WAF
IP: --   

Addon domain redirecting to main domain
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
QUESTION 1.
Do you have different folder for the two different domain?
I mean in public_html do you have two different folder for each domain.

QUESTION 2.
In Manage Domain of Webuzo do you have two different patch on each domain or the patch is the same?


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Addon domain redirecting to main domain
jkility
Group: Member
Post Group: Newbie
Posts: 6
Status:
Q1)

If you applying public_html/rebootme & public_html/fab-fudge_couk . No, public_html/ = Rebootme & public_html/fab-fudge_couk = Fab-Fudge.co.uk

Q2)

In Webuzo:
rebootmewithhsct.co.uk =    /home/*removed*/public_html
fab-fudge.co.uk = /home/*removed*/public_html/fab-fudge_couk
IP: --   

Addon domain redirecting to main domain
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
OK today no Webuzo Official Support. Office and work time will be tomorrow. If you want you can find me in live chat for 15 / 30 minutes from now. Please if you want start a chat with me click on my signature link.

I will try to assist you better.
Thanks.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Addon domain redirecting to main domain
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Thank you for your chat.
You need wait a reply from the Webuzo team who maybe can ask to open a ticket.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Addon domain redirecting to main domain
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Seems you have now solved your issue.

Have a great time!


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Addon domain redirecting to main domain
jkility
Group: Member
Post Group: Newbie
Posts: 6
Status:
Hi,

I was actually playing along with Prestashop last night after our conversation just to try and get it to work. I disabled SSL throughout all pages and now fab-fudge.co.uk works. BUT https://fab-fudge.co.uk does not and redirects to https://rebootmewithhsct.co.uk
IP: --   

Addon domain redirecting to main domain
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Hi,
this morning I was able to see your PrestaShop maintenance page without https in http.

Now I AM able to see same issue as yesterday but is not the issue you say. Seems you are little confused about that.

http://fab-fudge.co.uk/ does not redirect to https://rebootmewithhsct.co.uk/ but redirect to the https version of fab-fudge.co.uk as there are no valid certificate for fab-fudge.co.uk the browser show an error.

Maybe you have enabled SSL in your PrestaShop settings or somewhere. I think is an issue with your PrestaShop settings or install at this point.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Addon domain redirecting to main domain
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
For me the URL http://fab-fudge.co.uk/ IS now working and show maintenance message so seems has stopped to redirect to the not supported https version of the URL so problem seems solved.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Addon domain redirecting to main domain
jkility
Group: Member
Post Group: Newbie
Posts: 6
Status:
Hi,

http://fab-fudge.co.uk work's fine with no problem now.
https://fab-fudge.co.uk redirects to https://rebootmewithhsct.co.uk which I'm not sure why.

As you say, it could be a issue with the SSL so I'll feed this back to my webhost to look into
IP: --   

Addon domain redirecting to main domain
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Quote From : jkility July 25, 2016, 12:15 pm
Hi,

http://fab-fudge.co.uk work's fine with no problem now.
https://fab-fudge.co.uk redirects to https://rebootmewithhsct.co.uk which I'm not sure why.

As you say, it could be a issue with the SSL so I'll feed this back to my webhost to look into


I think you are wrong.
Maybe you have added exception to bad SSL in your browser?

For me https://fab-fudge.co.uk/ is not accessible for wrong SSL is not redirecting to the other domain it show an error about SSL in Firefox.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 4:15 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.026