0

I have a web server running as intended on localhost:80 on Fedora (6.13.9-200.fc41.x86_64) and I wanted to access it through another machine I'm using to SSH into.

I've been following this video and I noticed Ubuntu is quite different from RHEL distros. I encountered many difficulties but I managed to get it running. The only issue it that now I see this when I access it in my SSH client machine:

<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

My apache config file /etc/httpd/conf.d/nc.marcosg.com.conf looks like this:

<VirtualHost *:80>
    DocumentRoot "/var/www/nc.marcosg.com"
    ServerName nc.marcosg.com

    <Directory "/var/www/nc.marcosg.com/">
        Options MultiViews FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

   TransferLog /var/log/httpd/nc.marcosg.com_access.log
   ErrorLog /var/log/httpd/nc.marcosg.com_error.log

</VirtualHost>

/etc/hosts is configured to use my custom domain:

   3   │ 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
   4   │ 127.0.1.1   nc.marcosg.com nc
   5   │ ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

I'm not used to converting web server configuration steps from Ubuntu to RHEL and could have made mistakes related to nginx, httpd/apache, SELinux or tunneling.

7
  • When you SSH to the Ubuntu system, are you telling it http://localhost or giving it a correct address for the Fedora system? Commented Apr 16 at 19:10
  • I may have made it confusing. There's only 2 machines involved, Fedora and Windows. The Ubuntu I mentioned is because the guide is for Ubuntu. All commands are in the link, but I had to "convert" some so I could follow with my Fedora machine. learnlinux.tv/… Commented Apr 16 at 19:18
  • You're showing an nginx response in your question, but providing Apache configuration. Doesn't that ring any bells? Commented Apr 16 at 20:34
  • Now what http server are you using. Is it apache or nginx? Certainly not both? And what does the nextcloud tag have to do with this? Commented Apr 16 at 20:49
  • The issue most likely is that you are actually contacting two different http servers or two different hosts inside the http server. Which is why you get different results. How did you configure network resolution on the client system? And what URL did you request there? Commented Apr 16 at 20:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.