•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Linux Servers and Apache section within the Tech Talk category of DaniWeb, a massive community of 423,616 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,220 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Linux Servers and Apache advertiser: Programming Forums
Views: 7205 | Replies: 2
![]() |
•
•
Join Date: Jul 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I have been given a server which runs Apache2. Its working fine by itself. What I need to do is run another apache server in port (say)8000 is folder /home/myname (in the same machine). From what I know, if I have proper configuration files in my folder we should be able to run another apache server from there. Please correct me if I am wrong. I tried copying the already existing config files in the server to my folder and changing the Port to 8000. This doesn't seem to work as I cannot write to many files because I do not have permission to do so. Also there seem to be too many interconnected files that I do not have permission to write on.
Can someone guide me to write a config file (httpd.conf) for the server at port 8000!!!
my final aim will be to communicate between these two servers (Hopefully urllib will help me do that).
I was wondering if the whole idea of running second apache in a different folder just by using configuration file/s (httpd.conf) as mentioned above work or not!!
If I make the same version of Apache listen to two ports (8000 and 80 lets say) using virtural hosts, can they be assigned different configuration?? e.g. making these two run different file by default!!
Where in the config file do we make apache run a specific file on receiving a request???
Anand
I have been given a server which runs Apache2. Its working fine by itself. What I need to do is run another apache server in port (say)8000 is folder /home/myname (in the same machine). From what I know, if I have proper configuration files in my folder we should be able to run another apache server from there. Please correct me if I am wrong. I tried copying the already existing config files in the server to my folder and changing the Port to 8000. This doesn't seem to work as I cannot write to many files because I do not have permission to do so. Also there seem to be too many interconnected files that I do not have permission to write on.
Can someone guide me to write a config file (httpd.conf) for the server at port 8000!!!
my final aim will be to communicate between these two servers (Hopefully urllib will help me do that).
I was wondering if the whole idea of running second apache in a different folder just by using configuration file/s (httpd.conf) as mentioned above work or not!!
If I make the same version of Apache listen to two ports (8000 and 80 lets say) using virtural hosts, can they be assigned different configuration?? e.g. making these two run different file by default!!
Where in the config file do we make apache run a specific file on receiving a request???
Anand
•
•
•
•
Originally Posted by Anand Parajuli
Hi,
I have been given a server which runs Apache2. Its working fine by itself. What I need to do is run another apache server in port (say)8000 is folder /home/myname (in the same machine). From what I know, if I have proper configuration files in my folder we should be able to run another apache server from there. Please correct me if I am wrong. I tried copying the already existing config files in the server to my folder and changing the Port to 8000. This doesn't seem to work as I cannot write to many files because I do not have permission to do so. Also there seem to be too many interconnected files that I do not have permission to write on.
Can someone guide me to write a config file (httpd.conf) for the server at port 8000!!!
my final aim will be to communicate between these two servers (Hopefully urllib will help me do that).
I was wondering if the whole idea of running second apache in a different folder just by using configuration file/s (httpd.conf) as mentioned above work or not!!
If I make the same version of Apache listen to two ports (8000 and 80 lets say) using virtural hosts, can they be assigned different configuration?? e.g. making these two run different file by default!!
Where in the config file do we make apache run a specific file on receiving a request???
Anand
You should be able to place both ports on the same configuration file then seperate the requests using a virtualhost entry.
Example:
NameVirtualhost 192.168.0.1:80
NameVirtualhost 192.168.0.1:8000
<VirtualHost 192.168.0.1:80>
Servername main.servername.com
Serveralias servername.com www.servername.com
DocumentRoot /home/path/documents1/
</VirtualHost>
<VirtualHost 192.168.0.1:8000>
Servername main.otherservername.com
Serveralias otherservername.com www.otherservername.com
DocumentRoot /home/path/documents2/
</VirtualHost>
--
<Something clever here>
RHCDS/MCP/DCSP
<Something clever here>

RHCDS/MCP/DCSP
![]() |
•
•
•
•
•
•
•
•
DaniWeb Linux Servers and Apache Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
apple bbc cd cellphone choose code computer core debian dell desktop development drivers enterprise fedora fiji games gentoo gpl hardware ibm infrastructure install kernel laptop linux marketing microsoft mobile news novell open open source openoffice operating os palm preinstall red hat rhel security server source sun system ubuntu unix vista web windows
- apache port binding problem (PHP)
- No Redirection to my Apache Server (Linux Servers and Apache)
- Optimum Online Web Hosting. (Networking Hardware Configuration)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
- Apache redirection? (Linux Servers and Apache)
- Port 80 problem (Linux Servers and Apache)
- IIS and FrontPage 2002 Server Extensions (Windows Servers and IIS)
- Printing the datagrid control (ASP.NET)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: Actiontec giving me a headache
- Next Thread: mod_rewrite question: regex help needed


It really does help. Now I can treat 49 port as SVN repository, 80 as web server.)
Linear Mode