@Tej-Singh-Rana here is what happens when I do SCP as per your comment.
sudo scp -r /home/thor/media tony@stapp01:/var/www/html/
That’s normal. You don’t have root privileges. You can do one thing
Change the password of the root then try. It’s time taken.
or
Copy into the /tmp/ directory then move into /var/www/html
directory along with its parent directory.
jump_host:-
sudo scp -r /home/thor/blog tony@stapp01:/tmp/
ssh tony@stapp01
app_server:-
sudo mv /tmp/blog /var/www/html/
What do you mean but still nothing?
@Tej-Singh-Rana When i curl http://172.16.238.10:8080/blog from lb server
[loki@stlb01 ~]$ curl http://172.16.238.10:8080/blog
301 Moved PermanentlyMoved Permanently
The document has moved here.
[loki@stlb01 ~]$ curl http://172.16.238.10:8080/apps 301 Moved PermanentlyMoved Permanently
The document has moved here.
curl http://172.16.238.10:8080/blog/
Have you restarted service after changes in the httpd configuration.
Okay, Have you got again this task?
@Tej-Singh-Rana
Yes trying to curl http://172.16.238.10:8080/news
curl http://172.16.238.10:8080/cluster it working but when doing
curl http://172.16.238.10:8080/news/
curl http://172.16.238.10:8080/cluster/
it not working
How did you define in the /var/www/html ?
@Tej-Singh-Rana
sudo scp -r /home/thor/news/index.html tony@stapp01:/var/www/html/news
sudo scp -r /home/thor/cluster/index.html tony@stapp01:/var/www/html/cluster
Go into the location /var/www/html/ and check the index.html file is present with the cluster directory?
Share the image one of the app server.
ls -l /var/www/html/cluster/
Hi All
I have seen the above mentioned steps for this task and followed the same.
I have copied the directories from jump_host to stapp01 /var/www/html and also added the virtual host with the 8080 port as given in the task.
But after restarting the httpd service and trying to access
curl http://172.16.238.10:8080/cluster/
curl http://172.16.238.10:8080/blog/
I’m getting 404 not found error can any body help me with this
@Tej-Singh-Rana
[root@stapp01 html]# cd beta
-bash: cd: beta: Not a directory
[root@stapp01 html]# cd games
-bash: cd: games: Not a directory