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.
http://localhostor giving it a correct address for the Fedora system?nextcloudtag have to do with this?