반응형

https://www.google.com.vn/?gfe_rd=cr&ei=gSbqV4PACufC8AeKgIHYDA#safe=strict&q=selinux+%EB%81%84%EA%B8%B0


setenforce 0 하면 일시적으로 꺼짐


http://sangchul.kr/67

반응형
반응형

> Apache 에러 로그 메시지
위치 : APACHE_HOME/logs/localhost-error_log

[Thu Sep 26 17:02:51.401841 2013] [core:error] [pid 29603:tid 140488246032128] (13)Permission denied: [client 211.222.111.123:62022] AH00035: access to / denied (filesystem path '/home/webuser/htdocs') because search permissions are missing on a component of the path


> 해당 계정의 디렉토리에 일반 사용자 실행권한을 줌
# chmod 711 /home/webuser

> 계정 초기 생성 시 기본 권한 : drwx------
[web@webuser ~]$ ls -al /home
drwx------.  5 webuser   webuser   4096 2013-09-26 19:46 webuser

[web@webuser ~]$ chmod 711 /home/webuser
> 권한 변경후
[web@webuser ~]$ ls -al /home
drwx--x--x.  5 webuser webuser 4096 2013-09-26 19:46 webuser

[web@webuser ~]$ ls -al /home/webuser/
drwxrwxr-x. 3 webuser webuser 4096 2013-09-26 19:46 htdocs 
`**해당 웹 디렉토리의 권한을 꼭 775로 바꿔줘야 함**`



# client denied by server configuration
Apache 2.4에서 에러로그(error.log)에 'client denied by server configuration' 오류 발생하며 접속되지 않는 증상

Directory 부분에 Require all granted 으로 설정

httpd.conf

202 
203     AllowOverride none
204 #    Require all denied
205     Require all granted
206 

353 <Directory "/app/server/apache-2.4.9/cgi-bin">
354     AllowOverride None
355     Options None
356     Require all granted
357 

> 모든 요청 허가
Apache 2.2 configuration:
Order allow,deny
Allow from all

Apache 2.4 configuration:
Require all granted

> 모든 요청 거부
Apache 2.2 configuration:
Order deny,allow
Deny from all

Apache 2.4 configuration:
Require all denied

반응형

'Tip & Tech > Linux | Unix' 카테고리의 다른 글

mod_rewrite 활성화  (0) 2019.07.15
selinux 끄기  (0) 2019.07.15
Linux Shell MOTD(로그인 후 배너)  (0) 2019.07.15
Jenkins 다른 계정으로 구동  (0) 2019.07.15
GCC .so만들기  (0) 2010.10.21
반응형

C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_compiler.exe -p D:\precompiled\project_name -v / D:\precompiled\project_dll -f -fixednames

 

 

https://msdn.microsoft.com/ko-kr/library/ms227976(v=vs.100).aspx

 

How to: Precompile ASP.NET Web Sites for Deployment

How to: Precompile ASP.NET Web Sites for Deployment 10/22/2014 2 minutes to read In this article --> When you precompile an ASP.NET Web site for deployment you create a layout containing assemblies and other information that you can then copy to a producti

docs.microsoft.com

https://msdn.microsoft.com/en-us/library/bb398860.aspx

 

ASP.NET Web Site Project Precompilation Overview

ASP.NET Web Site Project Precompilation Overview 12/04/2014 15 minutes to read In this article --> You can precompile a Web site project before it is made available to users. This provides many advantages, which include faster initial response time, error

docs.microsoft.com

http://stackoverflow.com/questions/336205/can-i-precompile-my-asp-net-mvc-application

 

Can I precompile my ASP.NET MVC application?

I tried to precompile my ASP.NET MVC application and deploy it to an IIS6 box (with wildcard mapping), however I am getting an error with rendering partial views (user controls). Its working fine ...

stackoverflow.com

http://blogs.msdn.com/b/perfworld/archive/2009/01/29/how-can-i-precompile-my-asp-net-web-pages-so-that-the-first-user-accessing-the-web-site-doesn-t-experience-slow-performance.aspx

불러오는 중입니다...

 

반응형

'.NET > VS.NET' 카테고리의 다른 글

ASP.NET MVC 캐시 컨트롤  (0) 2019.07.15
MVC5 Database.Open 사용법  (0) 2019.07.15
IIS MVC4 활성화  (0) 2019.07.15
[C#] 문자열 암호화 - RSA, MD5, DES  (0) 2010.10.21
[VC++] Othello 소스  (0) 2010.10.21
반응형

https://github.com/moonpyk/mvcdonutcaching

 

moonpyk/mvcdonutcaching

ASP.NET MVC Extensible Donut Caching brings donut caching to ASP.NET MVC 3 and later. The code allows you to cache all of your page apart from one or more Html.Actions which can be executed every r...

github.com

http://www.devtrends.co.uk/blog/donut-output-caching-in-asp.net-mvc-3

 

DevTrends .NET Blog

In-depth technical articles focusing on .NET Core, ASP.NET MVC, Web API and Microsoft Azure

www.devtrends.co.uk

nuget$ install-package MvcDonutCaching

 

ASP.NET에 자체 캐시시스템이 가장 안정적

반응형

'.NET > VS.NET' 카테고리의 다른 글

ASP.NET Precompiled  (0) 2019.07.15
MVC5 Database.Open 사용법  (0) 2019.07.15
IIS MVC4 활성화  (0) 2019.07.15
[C#] 문자열 암호화 - RSA, MD5, DES  (0) 2010.10.21
[VC++] Othello 소스  (0) 2010.10.21
반응형

iis 동접 확인 방법윈도우서버에서 현재 웹 동시접속자 정보를 확인할수 있는 방법으로 netstat

명령을 사용하여 간단하게 카운트 할 수 있다.

시작 - 실행 - cmd

c:>netstat -ano | find /c "80" 입력하면 현재 접속자 수를 확인가능하다



c:> netstat -an | find "80" | find /c "ESTABLISHED"

반응형

'Tip & Tech > Windows' 카테고리의 다른 글

IIS 응용프로그램 풀 재시작 커멘드  (0) 2019.07.15
CORS IIS7  (0) 2019.07.15
CentOS Redmine(레드마인) 설치  (0) 2019.07.15
MSSQL에서 SP 내용 알아내는 법  (0) 2019.07.15
IIS FTP passive로 List가 되지 않을 때  (0) 2019.07.15
반응형

						
                        
반응형
반응형

CORS on IIS7

For Microsoft IIS7, merge this into the web.config file at the root of your application or site: 
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>

If you don't have a web.config file already, or don't know what one is, just create a new file called web.config containing the snippet above

반응형
반응형

http://stackoverflow.com/questions/19169846/is-asp-net-mvc-5-incompatible-with-the-webmatrix-simplemembershipprovider

 

Is ASP.NET MVC 5 incompatible with the WebMatrix SimpleMembershipProvider?

We have an existing application that was build on ASP.NET MVC 4 & Web API. The admin parts of the site use Simple Membership. I'm interested in upgrading the application to MVC 5 / Web API 2, t...

stackoverflow.com

 

[Nuget]

Install-Package Microsoft.AspNet.WebHelpers

Install-Package Microsoft.AspNet.WebPages.Data

[참조추가]

WebGrease

WebMatrix.Data

WebMatrix.WebData

 

 

http://www.ryadel.com/2014/10/20/asp-net-setup-mvc5-website-mysql-entity-framework-6-code-first-vs2013/

 

ASP.NET: Setup a MVC5 website with MySQL, Entity Framework 6 Code-First and VS2013

The new features available in EF6 allow any developer to build a simple DB-powered website with very few lines of code. There are many tutorials explaining how

www.ryadel.com

https://www.nuget.org/packages/MySql.Data.Entity/

 

MySql.Data.Entity 6.10.8

MySql.Data.Entity.EF6

www.nuget.org

<!--<remove name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" />-->

 

Install-Package MySql.Data.Entity

반응형

'.NET > VS.NET' 카테고리의 다른 글

ASP.NET Precompiled  (0) 2019.07.15
ASP.NET MVC 캐시 컨트롤  (0) 2019.07.15
IIS MVC4 활성화  (0) 2019.07.15
[C#] 문자열 암호화 - RSA, MD5, DES  (0) 2010.10.21
[VC++] Othello 소스  (0) 2010.10.21
반응형

https://www.server-world.info/en/note?os=CentOS_7&p=redmine

반응형

'Tip & Tech > Windows' 카테고리의 다른 글

iis 동접 확인 방법  (0) 2019.07.15
CORS IIS7  (0) 2019.07.15
MSSQL에서 SP 내용 알아내는 법  (0) 2019.07.15
IIS FTP passive로 List가 되지 않을 때  (0) 2019.07.15
WindowsXP 자동 업데이트 후 재시작 막기.  (0) 2010.12.16
반응형


echo -en "\033[1;45m" > /etc/motd
echo -e '\n' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -e '| This server has below service(s) |' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd
echo -en "\033[1;42m" >> /etc/motd
echo -e '1. project.domain.com (redmine)' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd


echo -en "\033[1;45m" > /etc/motd
echo -e '\n' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -e '| This server has below service(s) |' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd
echo -en "\033[1;42m" >> /etc/motd
echo -e '1. www.domain.com (php5)' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd


echo -en "\033[1;45m" > /etc/motd
echo -e '\n' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -e '| This server has below service(s) |' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd
echo -en "\033[1;42m" >> /etc/motd
echo -e '1. ap.domain.com (php5)' >> /etc/motd
echo -e '2. www.domain.com (php5)' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd


**for live**

echo -en "\033[1;36m" > /etc/motd
echo -e '\n' >> /etc/motd
echo -e '## LIVE SERVER ##' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -en "\033[1;45m" >> /etc/motd
echo -e '\n' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -e '| This server has below service(s) |' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd
echo -en "\033[1;42m" >> /etc/motd
echo -e '1. member.domain.com (php5)' >> /etc/motd
echo -e '2. static.domain.com (php5)' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd

반응형

'Tip & Tech > Linux | Unix' 카테고리의 다른 글

selinux 끄기  (0) 2019.07.15
Apache AH00035 오류, Tomcat SSL Permission Denied  (0) 2019.07.15
Jenkins 다른 계정으로 구동  (0) 2019.07.15
GCC .so만들기  (0) 2010.10.21
PHP 확장모듈 만들기  (0) 2010.10.21

+ Recent posts