Currently, I have the following IP address with this port:
http://292.168.14.23/
http://292.168.14.23:80/
The above addresses behave identically and have been used for serving the local
UCSC Genome Browser.
What I want to do now is to set a new IP address, say http://292.168.14.23:8080/
— namely using 8080
as a port instead of the default 80
— that I can use to serve basic files in Apache. So when I do this:
http://292.168.14.23:8080/my_spec_dir/myfile.txt
I can navigate and download the files from the browser.
How can I do that?
Following this instruction, I tried changing this file /etc/httpd/conf/httpd.conf
with these lines:
Listen 8080
ServerName 292.168.14.23:8080
Although this address work: http://292.168.14.23:8080
, I still cannot get access to the file: http://292.168.14.23:8080/my_spec_dir/myfile.txt
Note that my_spec_dir
is stored under /web/html
, and it is configured in httpd.conf
this way:
#
# Relax access to content within /var/www.
#
<Directory "/web/html">
AllowOverride All
# Allow open access:
Require all granted
Header set Access-Control-Allow-Origin "*"
</Directory>
2
Answers
Are you sure you have added configuration override through htaccess files?
If you want to change global document root
Or if you want a virtualhost.