• I migrated my self hosted (hosting on Raspberry Pis) from one Pi to another. When I point my web traffic to the new server IP address, a webpage comes up showing the wordpress directory. If I click on the wordpress directory, it launches the webpage. How do I correct this so that incoming web traffic goes straight to the webpage?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    In your httpd configuration, change the document root to that wordpress directory.

    Thread Starter jegallag17

    (@jegallag17)

    Which configuration are you refernecing?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I assume you’re running some form of linux on that Pi, so in the webserver configuration.

    Moderator bcworkz

    (@bcworkz)

    Configuration varies somewhat depending on the specific O/S. I believe Pi OS is essentially Debian?

    If so, it uses a virtual host scheme. Generic instructions here.

    Where the example has <VirtualHost *:80>, replace the * with the actual IP address you’re using. If you’re not using port 80, change the 80 to the correct port.

    I think the only entries you really need is an arbitrary server name and the DocumentRoot entry. Though you should want the log files enabled as well. Be sure your DocumentRoot value reflects the actual path on your server.

    Thread Starter jegallag17

    (@jegallag17)

    I am running this on a Pi running Debian 12.

    I have also discovered that I am unable to access any of my pages to edit them. Message is: Unable to connect.

    I believe this is all due to the fact that it wants to look at the 192.168.1.190/wordpress URL instead of the 192.168.1.190 URL, but I am a little over my head on this one.

    Moderator bcworkz

    (@bcworkz)

    192.168.1.190/wordpress should at least work, even if it’s not what you want. By requesting only 192.168.1.190, can you access whatever lies in the default root directory (usually at /var/www/html)? It’s feasible to use rewrite rules to redirect requests to 192.168.1.190/wordpress/ when just 192.168.1.190 is requested. No need to mess with virtual hosts. See this doc page. This assumes Apache web server. If you’re using nginx, there’s a different kind of file that’s equivalent to .htaccess that would need to be altered.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.