You need to specify an actual file name.
http://localhost/ss/filename.ext
or put an index.html in the ss directory.
When you type
http://localhost/ss/ into your address bar of your browser Apache is looking for an index file. It will give you a
404 file not found error if it is missing. You can also specify a file to load by using the name of one of the files in the ss directory.
This is the entry in the
xampp\apache\conf\httpd.conf file that relates to the index files that Apache looks for to serve using just a directory like
http://localhost/ss/
- Code: Select all
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.htm index.php index.php4 index.php3 index.cgi index.pl index.html.var index.phtml
So create and put one of those files in your ss directory and it will work for you.
You can add an index file of your choice to the httpd.conf file if you prefer another file name eg. index.txt or myfileindex.extension etc.
Remember to restart Apache if you make any changes to the httpd.conf file otherwise Apache won't be aware of your changes.
HTH