logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Text and an image in a browser address bar
Author
Oleg777



Joined: 18 Dec 2021
Posts: 2
Location: Belarus

PostPosted: Sat 18 Dec '21 17:50    Post subject: Text and an image in a browser address bar Reply with quote

Hello everyone! I'm from Vitebsk,Belarus! Look,guys, i want to do the following (i have my IT course practical task): configure Apache so that when i type in an address bar of a browser "ABC" address for example (where instead of "ABC" is my name in latin letters), the browser displays a page with my photo and an inscription like "ABC - Well done!"(or "ABC - a good guy")


An example is herehttps://ibb.co/HHR9FJ2
Back to top
Oleg777



Joined: 18 Dec 2021
Posts: 2
Location: Belarus

PostPosted: Sun 19 Dec '21 11:13    Post subject: Reply with quote

So is correct example for Windows?

<VirtualHost osradar1.com:80>
ServerAdmin webmaster@osradar1.com
DocumentRoot "/sites/osradar1.com"
ServerName osradar1.com
ServerAlias www.osradar1.com
<Directory "c:/sites/osradar1.com">
AllowOverride All
Require all granted
Options Indexes FollowSymLinks
</Directory>
ErrorLog "logs/osradar1.com-error.log"
CustomLog "logs/osradar1.com-access.log" common
</VirtualHost>

<VirtualHost osradar2.com:80>
ServerAdmin webmaster@osradar2.com
DocumentRoot "/sites/osradar2.com"
ServerName osradar2.com
ServerAlias www.osradar2.com
<Directory "c:/sites/osradar2.com">
AllowOverride All
Require all granted
Options Indexes FollowSymLinks
</Directory>
ErrorLog "logs/osradar2.com-error.log"
CustomLog "logs/osradar2.com-access.log" common
</VirtualHost>
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 29 Dec '21 19:32    Post subject: Reply with quote

You can do that with yourdomain.tld/ABC

Just a little script with the language of your choise.

Otherwise of it should be oleg777.tld or osradar1.com you are right using a vhost for that. You need to point a DNS record to your server or if you use it internaly only you can also use the hosts file.
Back to top


Reply to topic   Topic: Text and an image in a browser address bar View previous topic :: View next topic
Post new topic   Forum Index -> Apache