mamp pro virtual host will only work on port 8888 - wordpress

I have a series of vhosts that work fine on global settings of port 80 set in mamp pro. One new vhost I created will not work though on this port. I type in my vhost in thew browser or even use the link provded and it appends a :8888 onto the link and says can't establish connection to server.
When I change that vhost port # to 8888 then it works.
The problem is the :8888 remains and is screwing up my url routing for navigating the site especially with a standard wordpress build, I cant get into my admin section bc wordpress donest understand the :8888.
Any ideas how to fix this issue with mamp pro?

First you need to change port to 80
Server->general Apache value to 80 then create vhost
in Host ->add new
Server name
ip/port you can add as *
then disk location
that it done !

Related

aws centos 7 wordpress apache redirect

I've got EC2 Amazon Linux 2 instance with apache, mariadb and wordpress
VPC, Security group, ACL are set up correctly, i'm using same rules for other websites and works perfectly
telnet ip 443 and telnet ip 80 - both are reachable, checked and connected
I don't have access to DNSes, so I changed windows host file. Both are pointing to the same ip.
x.x.x.x example.com
x.x.x.x example.sandbox.com
ping recognize both and showing that there is no issue with host file.
First website with SSL.
Second website without SSL (tests purposes).
They are using same database but different schema. So table
wp_options and value for home and siteurl are set up correctly for
https://example.com for first one and http://example.sandbox.com for
test one.
First website is working fine, showing example.com with SSL. Nothing to do. Problem is with test environment. Everytime I try to reach example.sandbox.com chrome first shows me warning that page is not secured (expected) and after that redirects me to example.com. Same with Firefox. After added exception it redirects me to example.com. I run out of ideas...
Apache configs in comment. Have no idea how to paste it into post without error. Spent hour on it...
Found it!
Wordpress plugin really-simple-ssl. Removed it and it works.

Can I hide the port number in wordpress

I am setting up a corporate intranet site using WAMP and wordpress. I have a server running IIS on port 80 and WAMP on port 8080. I have the wordpress site running under WAMP. I want to publish the wordpress site without the port number.
For example, http://MyServer/MySite rather than http://MyServer:8080/MySite.
I have tried leaving the port number out of the "Site Address (URL)" but that doesn't work.
You need to reverse proxy it in iis
you need to install URL rewrite and Application Request Rerouting ( both MS plugins )
Then make a virtual directory under your main site (at the location you want "MySite" ), and go to url rewrite and it has an option to create the reverse proxy.
This will also mean you get HTTPS if your main site has HTTPS already
and reverse proxy to where your WAMP is hosted on your server

Apache Redirection two apps wordpress and tomcat

I want to configure Wordpress site (http://example.com/blog ) served from Apache. Webapp using Tomcat on same server listens on port 8080. These need to be redirect from 80 to 8080.
I tried reverse proxy method but was not successful.
Look at the wordpress configuration:
See table wp_options, there are two options:
1. siteurl
value: http://yourhost:port/
2. home
value: http://yourhost:port/dirname/
When you install the wordpress, the two paths above was set to the database, so if you change the port, it won't change it self, you should change it manually. Or it will always trigger a redirection there.

Redirect to other address Wordpress MAMP

I move my wordpress from my server to my localhost in the database I change
http://www.hybrid-tech.net/praxi3 to http:// localhost:8888/praxi3
after that, when I try to see the website on my localhost I go to
http:// localhost:8888/praxi3
but it's redirect me to
http:// localhost/praxi3
and I'm don't understand why. I back up a restore many times this database and I still getting this problem.
Thanks in advance for your help.
PD: I'm using mamp. The localhost link are without the space I mean http://lo....
You should check your mamp configs :
Is your apache port set to 80 ? If so the server redirects you to the 80 (default web port)
Try setting it to the 8888 port and refresh your page using the flush cache command :
ctrl+r or apple+r

How to not use apache port from site URL with acquia drupal

Acquia drupal always puts the apache port :8082 to the end of site url, e.g.: http://localhost:8082.
I have a custom site url:
http://somesite:8082
I want to access it just by http://somesite
How to make it work without :8082?
Any hint would be very much appreciated.
Thanks
Sorry, you're kind of out of luck. The only way to get that port to go away is to server on either port 80 (http) or 443 (https). Web browsers treat those as the default ports, hence, you don't have to specify. You need the port there so that the browser knows where to go to find Drupal. If you can't run the Acquia Drupal Apache server on port 80, you could optionally run a proxy on port 80 that redirects to the correct place. However that's probably more trouble than it's worth.
Basically, don't worry about it, whenever you move your site off of your localhost onto a live server, you'll be able to run in on port 80 and that pesky port number won't be there anymore.

Resources