Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
Hello,
new to CE4-Pages I just managed to setup a small test site. I even managed to get the contact page running, however, the information in the mail received is not correct.
In the mail, the source is mentioned as below:
From Page: http://www.abc.de:81/contact.php
The address is ok, but the port number is not. In my configuration I have port redirection to my internal web server. The external port 80 is mapped to the internal port 81 (Buffalo Terastation). So if I try to access the external dns name with the internal port number, it does not work. I think I would need to get rid of the port number in the "From Page:" line.
How could I achieve this? What would be the best way, in order that after future CE4-Pages updates it would still work?
Thanks for any help
Thomas
Offline
hi Thomas, I'm struggling to understand what you're describing. Firstly, what is the actual URL of your contact form?
Where does it display 81, and in what way is it failing?
Offline
Hello Ben,
pls see below the entire message, that i receive in my Inbox:
Name: Thomas
Email: thomas@abc.de
Message: Tvb
From Page: http://www.abcd.de:81/contact.php
Sender IP Address: 31.27.120.221
(I have replaced the actual domain names for privacy.)
So in the mail I receive a link to "http.//www.abc.de:81" is included. The ":81" is the TCP port number. Standard HTTP is 80. I have 81 on my system, this is the way it was configured.
The server is on my intranet. In order to access it from the Internet, I need to configure the port forwarding feature on my router. The effect is, that any request to "www.abc.de" (implicit port is 80 so this is equivalent to "www.abc.de:80" will be redirected to my internal web server, which has a different address and is responding at port 81. In this way, my server is only exposed to HTTP on the Internet.
However, when accessing the server at port 81 from the Internet, the port forwarding is not working, since it was not configured that way.
Obviously I could add another router rule. Or I could reconfigure my internal server to use different ports. Or I could just leave it alone, since I probably will not use the link in the incoming email.
I saw in the contact.php file the "currentPageURL" function, which is probably providing the "From Page" information, however, when I would change this it would be deleted after the next update, I guess.
Offline
Hi Thomas, thanks for the further explanation. The URL is constructed using the port information of the server that the software is running on. This should be resolved when you move from your home setup to your production environment.
Offline
Pages: 1