I am using Open Suse. I am new to it and web servers (and StackOverFlow too).
There is a apache2 in the etc directory and xyz.xyz.xyz returns “It works!”.
Also xyz.xyz.xyz:5000 currently returns a webpage. I have modified the page and want to host it.
Problem:
How do I configure the apache server to create a port for me?
What files do I need to modify (httpd.conf?)? And will I need super user access?
Thanks
OpenSUSE may have a different layout for configuration files, but what you are looking for is a
VirtualHostdirective which is setup to read port 5000. (Apache docs onVirtualHosts)This may be inside
httpd.conf, or it may be in another file inside/etc/apache2which ends also in.conf. You will find the port 5000 setup looking something like:To create a VirtualHost which listens on a different port than 5000, just copy the entire
<VirtualHost>...</VirtualHost>block and change both the port number, and theDocumentRootto point to the place on your filesystem which will hold your other vhost’s files. You will also need aListen *:port_numberdirective to cause Apache to take over the port.For example, to add a vhost on 5001, do:
You will need to restart Apache after this.
Note that you will need superuser access to do modify the httpd.conf file, and to restart Apache.