troubleshooting Question

How to redirect the web access into different web apps. location using apache httpd.conf

Avatar of jjoz
jjozFlag for Australia asked on
LinuxApache Web ServerLinux Networking
18 Comments1 Solution1263 ViewsLast Modified:
Hi Everyone,

I got two web apps in my single linux box, they are Wiki and Mantis
the screenshot of the web apps directory shown below.

I have created the DNS CNAME record for this server which point to the main server SV6

service.domain.com --> SV6
rather than: http://sv6/mantis/my_view_page.php

wiki.domain.com --> SV6
rather than: http://sv6/mediawiki/index.php/Main_Page


here's the :/etc/apache2/httpd.conf file content

somehow i got error after i edit it and restart the Apache server.

can anyone help me please ?

Thanks,
JJ
<VirtualHost *:80>
    ServerAdmin sysadmin@domain.com
    DocumentRoot /usr/share/mantis/www
    ServerName service.domain.com
    ErrorLog logs/service.domain.com-error_log
    CustomLog logs/service.domain.com-access_log common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin sysadmin@domain.com
    DocumentRoot /var/lib/mediawiki
    ServerName wiki.domain.com
    ErrorLog logs/wiki.domain.com-error_log
    CustomLog logs/wiki.domain.com-access_log common
</VirtualHost>


root@sv6:/etc/apache2# apache2ctl start

root@sv6:/etc/apache2# apache2ctl status
w3m: Can't load http://localhost:80/server-status.
apache-error.jpg
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 18 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros