Ideally I would be able to access it via simply typing in 192.168.1.102
Main Topics
Browse All TopicsI recently made a stupid mistake, I changed linux distributions without making proper backups of certain files, the most important being httpd.conf.
The following is a brief description of my directory structure and where my files are located.
/srv/www/htdocs/alpha
/srv/www/htdocs/include
I want when I go to 192.168.1.102 (the static IP I have set up for my server) all the content in alpha to come up, however there is content in alpha that will call information from include. By which I mean I have content in alpha and need files in include and other sub directories to be accessible.
The following is a trimed down version of my httpd.conf file
# run under this user/group id
Include /etc/apache2/uid.conf
# - how many server processes to start (server pool regulation)
# - usage of KeepAlive
Include /etc/apache2/server-tuning
ErrorLog /var/log/apache2/error_log
Include /etc/apache2/sysconfig.d/l
Include /etc/apache2/listen.conf
Include /etc/apache2/mod_log_confi
Include /etc/apache2/sysconfig.d/g
Include /etc/apache2/mod_status.co
Include /etc/apache2/mod_info.conf
Include /etc/apache2/mod_usertrack
Include /etc/apache2/mod_autoindex
TypesConfig /etc/apache2/mime.types
DefaultType text/plain
Include /etc/apache2/mod_mime-defa
Include /etc/apache2/errors.conf
Include /etc/apache2/ssl-global.co
<Directory />
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
DirectoryIndex index.php index.html index.html.var
Include /etc/apache2/default-serve
Include /etc/apache2/sysconfig.d/i
Include /etc/apache2/vhosts.d/*.co
The following is a trimmed down version of my the default-server.conf
#
# Global configuration that will be applicable for all virtual hosts, unless
# deleted here, or overriden elswhere.
#
DocumentRoot "/srv/www/htdocs"
<Directory "/srv/www/htdocs">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /icons/ "/usr/share/apache2/icons/
<Directory "/usr/share/apache2/icons"
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
<Directory "/srv/www/cgi-bin">
AllowOverride None
Options +ExecCGI -Includes
Order allow,deny
Allow from all
</Directory>
<Directory "/srv/www/htdocs/alpha">
AllowOverride Indexes
Options None
Order allow,deny
Allow from all
</Directory>
Include /etc/apache2/conf.d/*.conf
Include /etc/apache2/conf.d/apache
ServerName dell
ServerAdmin root@dell
Any ideas what I'm doing wrong and where?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I don't think the Alias is likely to do much, because /srv/www/htdocs is the document root, so /svr/www/htdocs/alpha filesystem path is already mapped to URL /alpha. Or at least what ever else the Alias is supposed to be doing is lost on me.
What happens when you try to access content in /include? Does this happen when accessing a directory or a file path (i.e. directory browsing might be disallowed).
Are the files in /includes Server Side Includes that are not being included? If so, have you (a) enabled mod_include (b) enabled Options Includes (c) checked XBitHack setting?
Business Accounts
Answer for Membership
by: periwinklePosted on 2006-05-12 at 07:27:36ID: 16667883
How are you trying to access the information which is in the alpha and includes directory? Is it being accessed as a subdirectory like 192.168.1.102/alpha ?
If so, you need:
Alias /alpha /srv/www/htdocs/alpha