URL redirect on Linode server

Hi all,

Does anyone using Linode ?
I have a problem in production with new Plone instillation.

When I installed my site goes www.domain.com:8080/Plone and it is visible only on this path. And I want of course to be in folder for domain name.

I am asking Linode support but they don't have idea why is this happend, because in apache everything is set to 80, not 8080

domain: domain.rs
public: /var/www/html/domain.rs/public_html/
<VirtualHost *:80>

Admin email, Server Name (domain name), and any aliases

ServerAdmin webmaster@domain.rs
ServerName domain.rs
ServerAlias www.domain.rs

Index file and Document Root (where the public files are located)

DirectoryIndex index.html index.php
DocumentRoot /var/www/html/domain.rs/public_html

Log file locations

LogLevel warn
ErrorLog /var/www/html/plone.rs/log/error.log
CustomLog /var/www/html/domain.rs/log/access.log combined

Thanks for help

This isn't really to do with Linode, more important is what webserver you have running on your box.

Background

Plone runs on a standalone application server called Zope (hence why your site is coming up on port 8080, that's actually Zope). The typical practice is to proxy your Zope server behind a webserver such as Apache.

Solution

It looks like you're using Apache (I tend to use nginx nowadays but that's another story).
You'll need to add a special rewrite rule which will allow apache to "know" about the Zope server running on port 8080.

The rewrite rule is added to your Apache configuration file, the steps to achieve this are detailed here:
https://docs.plone.org/manage/deploying/front-end/apache.html#id2

2 Likes

Thank you so much @pigeonflight

Yes I am use Apache and I got this link too http://betabug.ch/zope/witch
Can handle easy things + your link :slight_smile:
Thank you so much !

1 Like

Glad you're making progress!!!

1 Like