Apache configuration Automation based on location


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Apache configuration Automation based on location
# 1  
Old 08-20-2017
Apache configuration Automation based on location

Hi

I need to find a way to automate the deployment of my apache configuration to a few servers. I make change frequently on apache/conf/... etc, and I usually do this manually by copying files to each servers(and country config path)and restart apache servers.Source file will be like california.config,Newyork.config.

It would be nice if I could give git link with revision number, and it automates the deployment process.
Code:
/etc/httpd/conf/vhosts/Calfornia
/etc/httpd/conf/vhosts/NewJersy
/etc/httpd/conf/vhosts/Newyork


Last edited by rbatte1; 08-23-2017 at 08:11 AM.. Reason: Added CODE tags
# 2  
Old 08-23-2017
Welcome naresh2389,

I have a few to questions pose in response first:-
  • What have you tried so far?
  • What output/errors do you get?
  • What OS and version are you using?
  • What are your preferred tools? (C, shell, perl, awk, etc.)
  • What logical process have you considered? (to help steer us to follow what you are trying to achieve)
Most importantly, What have you tried so far?

There are probably many ways to achieve most tasks, so giving us an idea of your style and thoughts will help us guide you to an answer most suitable to you so you can adjust it to suit your needs in future.


We're all here to learn and getting the relevant information will help us all.

Kind regards,
Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

Apache log rotate configuration

HI i was trying to configure logrotate for my apache server and it's not working properly. Os: Red Hat 6 here is my lodrotate configuration /var/log/httpd/*log { daily missingok notifempty sharedscripts compress delaycompress postrotate ... (3 Replies)
Discussion started by: bentech4u
3 Replies

2. UNIX for Advanced & Expert Users

Apache log rotate configuration

HI i was trying to configure logrotate for my apache server and it's not working properly. here is my lodrotate configuration /var/log/httpd/*log { daily missingok notifempty sharedscripts compress delaycompress postrotate /sbin/service httpd... (1 Reply)
Discussion started by: bentech4u
1 Replies

3. Red Hat

About the apache for ipv6 configuration

I am running apache 2 on centos 7 which is running ipv4 , now I would like to enable it to support ipv6 , would advise what I need to change to Adding IPv6 support to the server ? or nothing need to do ? the existing vhosts is as below . <VirtualHost *:80> ServerAdmin xxx.com.hk " "... (2 Replies)
Discussion started by: ust3
2 Replies

4. Web Development

Need help on Apache configuration for redirecting URLS

I am extremely new to Apache httpd configuration. Can you please help here below is my requirement. If the URL match existing resource - return resource. If the URL doesn't match existing resource it should return index.html from the app root directory. Apps root directories are: 1.... (0 Replies)
Discussion started by: kar_333
0 Replies

5. Web Development

Apache Configuration File

I am new in Linux configure Apache. I got few questions to ask. I am will grateful for the help. Thanks. 1) In the Apache Configuration File, where is actually the base for the web tree? 2) I wanted to create a directory (called java) inside the base of the web tree. How am I going to do... (5 Replies)
Discussion started by: newlinuxuser
5 Replies

6. Red Hat

Website location configuration

Dear Sir, I want to configure my website in such a way that, if some one browse by site from USA it should display a different page e.g domain.com/usa1.html.Similarly when someone browse it from U.K it should display domain.com/uk1.html This is the features used by google.com . Please... (1 Reply)
Discussion started by: naik_mit
1 Replies

7. Solaris

Apache Configuration issue on Solaris

I seem to have an issue with Apache configurationon our Sun solaris Server. Since there are 2 my_app instances running in parallel, the perl modules in my_app_perl_libs are getting shared between them, even though they are in different directories (/u01/my_app and /u01/my_app8). This is because... (1 Reply)
Discussion started by: rahulrathod
1 Replies

8. UNIX for Advanced & Expert Users

apache configuration

Hi. I run openbsd and apache 1.3.29 PHP/4.3.9 mod_perl/1.29 DAV/1.0.3 mod_ssl/2.8.16 OpenSSL/0.9.7c anyway,problem is i have in httpd.conf allow override all in /dir1 and 2 directories /dir1/.htaccess is AuthType Basic AuthName "Password Required" AuthUserFile /passwords/password.file... (1 Reply)
Discussion started by: hachik
1 Replies
Login or Register to Ask a Question